New ~~> symbol, and compile source and target version bump

15 views
Skip to first unread message

Ted Kosan

unread,
Jul 21, 2019, 3:10:33 PM7/21/19
to mathpi...@googlegroups.com
In commit be4d9f73, a "~~>" symbol was added as a companion to the
"~>" symbol for handling examples that throw exceptions. See
"src/library_apps/mathpiper4/src/org/mathpiper/scripts4/testers/CheckType.mpws"
for how to use it.

In this commit, the source and target compiler settings were also
changed from 1.7 to 1.8.

Ted

Kyle Johnson

unread,
Aug 3, 2019, 11:57:26 PM8/3/19
to mathpiper-dev
Ted,

I am looking at a document I had formatted with the "->" code. It works under the pretense of the "->" but when I convert it to the "~>" it starts to throw exceptions. 

Based on the example file it doesn't seem like an appropriate time to use "~~>" but I could be wrong.

I'll keep it as the "->" until you get time to reply about what my issue might be.

Thanks!
Kyle

Ted Kosan

unread,
Aug 4, 2019, 12:52:02 PM8/4/19
to mathpi...@googlegroups.com
Kyle,

Try running the following commands:

git remote add upstream https://bitbucket.org/tkosan/mathpiperide/branch/develop

git pull upstream develop

Does the "~>" symbol work now?

Ted
> --
> You received this message because you are subscribed to the Google Groups "mathpiper-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mathpiper-dev/02645fe8-d39b-4cfd-b28c-f4986a4fde17%40googlegroups.com.

Kyle Johnson

unread,
Aug 5, 2019, 6:15:59 PM8/5/19
to mathpiper-dev
I fixed the merge conflicts with my pull request and then ran the git commands. It didn't fix both of the exceptions though.

The path to this file is: mathpiperide\src\library_apps\mathpiper4\src\org\mathpiper\scripts4\mpreduce\mpreduce.mpws

It occurs with two different examples in the file, the first one is with the Solve in_prompts:
Solve([2 * _x + _y == 5, -_x + _y == 2], [_x, _y])  ~>  [_x == 1,_y == 3]

And the exception read:
***EXCEPTION[ Error encountered during parsing: Error parsing expression near token ***( Error )***. ]EXCEPTION*** , Source: STRING:USER, Line: 3, Start Index: 6
***EXCEPTION[ Error encountered during parsing: Error parsing expression near token ***( Error )***. ]EXCEPTION*** , Source: STRING:USER, Line: 3, Start Index: 6
at org.mathpiper.test.TestSuite.evaluateTestScript(TestSuite.java:418)
at org.mathpiper.test.TestSuite.runSingleTest(TestSuite.java:288)
at org.mathpiper.test.TestSuite.testPerform(TestSuite.java:179)
at org.mathpiper.test.TestSuite.testPerform(TestSuite.java:108)
at org.mathpiper.test.TestSuite.main(TestSuite.java:568)

I think updating my git repo fixed the second error I was getting in the example, but the first one is still not working but it may be an issue with the solve procedure and not necessarily with the ~> function because when I enter it into the graphic console it also shows the same exception.

In> Solve([2 * _x + _y == 5, -_x + _y == 2], [_x, _y])
Result: Exception
Exception: Error encountered during parsing: Error parsing expression near token ***( Error )***. Starting at index 6.

Thanks!

On Sunday, August 4, 2019 at 12:52:02 PM UTC-4, tkosan wrote:
Kyle,

Try running the following commands:

git remote add upstream https://bitbucket.org/tkosan/mathpiperide/branch/develop

git pull upstream develop

Does the "~>" symbol work now?

Ted

On Sat, Aug 3, 2019 at 11:57 PM Kyle Johnson <brumo...@gmail.com> wrote:
>
> Ted,
>
> I am looking at a document I had formatted with the "->" code. It works under the pretense of the "->" but when I convert it to the "~>" it starts to throw exceptions.
>
> Based on the example file it doesn't seem like an appropriate time to use "~~>" but I could be wrong.
>
> I'll keep it as the "->" until you get time to reply about what my issue might be.
>
> Thanks!
> Kyle
>
> On Sunday, July 21, 2019 at 3:10:33 PM UTC-4, tkosan wrote:
>>
>> In commit be4d9f73, a "~~>" symbol was added as a companion to the
>> "~>" symbol for handling examples that throw exceptions. See
>> "src/library_apps/mathpiper4/src/org/mathpiper/scripts4/testers/CheckType.mpws"
>> for how to use it.
>>
>> In this commit, the source and target compiler settings were also
>> changed from 1.7 to 1.8.
>>
>> Ted
>
> --
> You received this message because you are subscribed to the Google Groups "mathpiper-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpi...@googlegroups.com.

Ted Kosan

unread,
Aug 11, 2019, 8:31:35 PM8/11/19
to mathpi...@googlegroups.com
Kyle,

The problem appears to be fixed as of commit 58ab1d23;

In> Solve([2 * _x + _y == 5, -_x + _y == 2], [_x, _y])
Result: [_x == 1,_y == 3]

Ted
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mathpiper-dev/c33613f9-d767-4355-bc1d-1c4c03e2aba1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages