Posted
almost 11 years
ago
by
rivantsov
here's a fix - add the following to the grammar:
var fromList = new NonTerminal("fromList");
var fromElem = new NonTerminal("fromElem");
var aliasedTable = new NonTerminal("aliasedTable");
var joinExpr = new
|
Posted
almost 11 years
ago
by
rivantsov
sorry for long silence, will try to get to your problem this weekend
|
Posted
almost 11 years
ago
by
rivantsov
just use any grammar in samples as starting point, and proceed step by step. But if you're serious, make sure you read a compiler construction book, and know things like LALR, scanner, parser, etc
|
Posted
almost 11 years
ago
by
NaxAlpha
Hi
I want to learn about Irony to make a very simple language
but i found no tutorial about Irony so will any one help me to construct a very simple language
Will anyone help me
|
Posted
almost 11 years
ago
by
Jpmon1
Sure,
I have updated the CSharpGrammar to what you will find at the link below:
https://peter.codeplex.com/SourceControl/latest#trunk/src/Peter/Logic/IronyGrammers/CSharpGrammar.cs
This updated version has the changes I mentioned above, but in
|
Posted
almost 11 years
ago
by
SteveHarveyUK
Morning Folks,
Just trying to add table aliases to the existing SQL 89 sample as I noticed that they cause a parsing error. The following change seems to work, changing:
Id.Rule = MakePlusRule(Id, dot, Id_simple);
to:
Id.Rule =
|
Posted
almost 11 years
ago
by
rivantsov
one more question, please. It appears that 'standard' c# char literal from TerminalFactory did not work for you. This might be some bug. Can you please share some details (what was input that failed), so I can spot the problem and fix it?
thanks
roman
|
Posted
almost 11 years
ago
by
Jpmon1
Sorry, I suppose I do know a bit more about the problem then I was giving you.
The problem was not with parsing the code after the case, it was with parsing the char '\u2085'. When the parser got to that position it was throwing an error about an
|
Posted
almost 11 years
ago
by
rivantsov
can you pls provide more details? inside this 'case' is just 'source.PreviewPosition++' - how this can fail? can you share your grammar?
|
Posted
almost 11 years
ago
by
Jpmon1
I am trying to update the C# grammar to the 4.0 syntax, and I am getting an error when Irony parses the C# grammar file when it is hitting line:
case '\u2085':
in the SkipWhitespace override method. I see when the code creating the char literal, is
|