Posted
about 9 years
ago
by
elias551
Here you go => http://stackoverflow.com/questions/334479/repository-of-bnf-grammars/334539#334539
|
Posted
about 9 years
ago
by
matejgolob
thanks. it works.
|
Posted
about 9 years
ago
by
rivantsov
Just add
... | id_simple;
to typeName rule
|
Posted
about 9 years
ago
by
matejgolob
I need simple t-sql parser and I started with demo SqlGrammar. t-sql escaping ([, ]) works fine with identifiers (it looks that there is some "magic" inside call
var Id_simple = TerminalFactory.CreateSqlExtIdentifier(this, "id_simple");
but I
|
Posted
about 9 years
ago
by
Harri
Rated 2 Stars (out of 5) - tried a number of the example grammars and they all throw exceptions of one kind or another....pity...
|
Posted
about 9 years
ago
by
Nicksys
Hi Roman
Thank you very much for replying back to me. You are right, I just changed again and it worked, when I subclass InterpretedLanguageGrammar didn't work before and I thought this is only for scripting languages. I did it now and it is
|
Posted
about 9 years
ago
by
rivantsov
all these things are built to work together, so if you want to use evaluation machinery already there, you should follow the rules, like using InterpretedLanguageGrammar as a base class. I don't understand, what is the big problem switching to it as a base class? Just change one word in class declaration
|
Posted
about 9 years
ago
by
Nicksys
Hi All,
I noticed that if you need to evaluate you need to have ScriptThread
var output = rooAST.Evaluate(thread);
and in order to create ScriptThread object you need a ScriptApp object, but the constructor of the ScriptApp expects your grammar
|
Posted
about 9 years
ago
by
tdolny
Is it possible to switch between multiple separate grammars when parsing one file with Irony?
Like for HTML mixed with PHP for example. Achieving independent coloring and validation.
How would I start extending Irony to support that if it's not available feature yet?
|
Posted
over 9 years
ago
by
Nicksys
Hi All,
I am really unable to understand how to fix this issue, I am been trying a lot and rewrote the grammar based on C# grammar, I studied it very well.
Here is my code:
this.Root = compilation_unit;
compilation_unit.Rule =
|