sanyaade-g2g-repos / recursive-ascent

Automatically exported from code.google.com/p/recursive-ascent
0 stars 0 forks source link

RNGLR generator fail when possible infinite epsilon inference detected. #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Rub YC: YaccConstructor.exe -c ExpandMeta -c ExpandEbnf -c "ReplaceLiterals 
KW_%%s" -c ExpandInnerAlt -c ExpandBrackets -c LeaveLast -g "RNGLRGenerator 
-translate false -token string -module Yard.Examples.MSParser -o MSParser.fs" 
-i infinity_epsilon_problem.yrd > log.txt

Input file in attachement.

Generation failed with output:
Grammar contains non-terminals, which can infinitely infer epsilon:
yard_many_2

Unhandled Exception: System.NullReferenceException: Object reference not set to 
an instance of an object.
   at Yard.Generators.RNGLR.AST.Tree`1.FilterChildren(FSharpFunc`2 childrenHandler)
   at Yard.Generators.RNGLR.RNGLR.Generate(t`2 definition, String args)
   at YaccConstructor.Program.run@95-1.Invoke(Unit unitVar)
   at <StartupCode$YaccConstructor>.$YaccConstructor.Program.main@()

Original issue reported on code.google.com by rsdpisuy@gmail.com on 16 Nov 2012 at 1:12

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dimo...@gmail.com on 20 Nov 2012 at 12:09