dolan/simple3-interpreter

Inconsistency between simple3.grm and the implementation class

Closed this issue · 2 comments

What steps will reproduce the problem?
1. Pull up simple3.grm in the Gold parser builder
2. Save compiled tables to simple3.cgt
3. Run the project

What is the expected output? What do you see instead?
The application should start up correctly, well it doesnt

What version of the product are you using? On what operating system?
windows xp

Please provide any additional information below.
The grammar file (simple3.grm) has a Rule for StatementOrBlock, but in the 
actual project (in Sequence.cs), the Rule is referred to as 
DelimitedStatement. I was able to change DelimitedStatement to StatementOrBlock 
and then complile/run successfully. 


Original issue reported on code.google.com by anilyash...@gmail.com on 22 Feb 2012 at 9:41

Fixed. Good catch. I apparently copied the grm file into the project folder 
before the final revision of the grammar was made.  I was publishing from Gold 
Builder into the correct output directory but I was working on another copy of 
the .grm.  (Gold likes to save them in My Documents by default, I guess I gave 
in a bit too easily.)  Thanks for your help!

Original comment by dave.do...@gmail.com on 23 Feb 2012 at 3:35

  • Changed state: Fixed
Great, thank you for the fix. I figured it was an oversight...hey, havent
we all been there.

btw: this is an excellent example, gave me a perfect foundation to build my
own grammar file for a formula editor in my project

Original comment by anilyash...@gmail.com on 25 Feb 2012 at 3:36