Posted 15 years ago
by leon
Hi,
I am trying to create a semantic parser using your grammar designer but there are some stuff I don't understand. Can you please help?
1. Can I edit the grammar.xml in visual studio? And then use your designer to parse it?
2. I am looking at the simple grammar xml file but I really don't understand how it defines things? It says function declaration and a bunch of properties and some custom code but nothing else to define what is a function definition. How does it work?
3. What about the tons of custom C# code inserted into the grammar xml file. Do they have to be defined for any language? It has methods like IsCollapsible but aren't they built-in? I don't see why we have to add a ton of code in between.
4. Also I couldn't fine lexer.xml for the simple language. Does it exist? I wanted to compare these 2 xml files side by side in the hopes of understanding how it works.
5. Is there a step by step tutorial for this stuff? I am really struggling to understand is and it looks like a well designed but extremely large framework to get a hold of at once.
Thanks in advance,
Leon
I am trying to create a semantic parser using your grammar designer but there are some stuff I don't understand. Can you please help?
1. Can I edit the grammar.xml in visual studio? And then use your designer to parse it?
2. I am looking at the simple grammar xml file but I really don't understand how it defines things? It says function declaration and a bunch of properties and some custom code but nothing else to define what is a function definition. How does it work?
3. What about the tons of custom C# code inserted into the grammar xml file. Do they have to be defined for any language? It has methods like IsCollapsible but aren't they built-in? I don't see why we have to add a ton of code in between.
4. Also I couldn't fine lexer.xml for the simple language. Does it exist? I wanted to compare these 2 xml files side by side in the hopes of understanding how it works.
5. Is there a step by step tutorial for this stuff? I am really struggling to understand is and it looks like a well designed but extremely large framework to get a hold of at once.
Thanks in advance,
Leon