danvim / ProcalParsing

0 stars 2 forks source link

Order of Operation #4

Closed mcreng closed 7 years ago

mcreng commented 7 years ago

Codes

  1. 5: 2->$A: $A Ans^5

    Parsing

  2. 5: 2->$A: ($A*Ans)^5

    Results

  3. 1024 //The problem seems to only affect Ans but not other var
danvim commented 7 years ago

All these are related to the operation of hidden multiplication.

I am going to remove hidden multiplication as .led()s in tokens and instead add * in places where multiplication is hidden before lexing by cleaning the input with regex.

danvim commented 7 years ago

Should be fixed in commit 7c636cadd07ad2fd35c32722fb7f5c2be30f5e9a

danvim commented 7 years ago

I forgot to remove the multiplication node at answer

danvim commented 7 years ago

Should be fixed in 4a35d5f172b06fed50a45237d648990a7c6c8e29