forked from jasder/antlr
Fix build errors in newly generated code
This commit is contained in:
parent
f71699e20a
commit
db2fe9dca9
|
@ -371,7 +371,7 @@ namespace Antlr4.Runtime.Atn
|
|||
{
|
||||
lexerActionExecutor = lexerActionExecutor.FixOffsetBeforeMatch(input.Index - startIndex);
|
||||
}
|
||||
bool treatEofAsEpsilon = t == CharStreamConstants.Eof;
|
||||
bool treatEofAsEpsilon = t == IntStreamConstants.Eof;
|
||||
if (Closure(input, c.Transform(target, lexerActionExecutor, true), reach, currentAltReachedAcceptState, true, treatEofAsEpsilon))
|
||||
{
|
||||
// any remaining configs for this alt have a lower priority than
|
||||
|
@ -582,7 +582,7 @@ namespace Antlr4.Runtime.Atn
|
|||
{
|
||||
if (treatEofAsEpsilon)
|
||||
{
|
||||
if (t.Matches(CharStreamConstants.Eof, char.MinValue, char.MaxValue))
|
||||
if (t.Matches(IntStreamConstants.Eof, char.MinValue, char.MaxValue))
|
||||
{
|
||||
c = config.Transform(t.target, false);
|
||||
break;
|
||||
|
|
|
@ -1799,7 +1799,7 @@ namespace Antlr4.Runtime.Atn
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if (!t.IsEpsilon && !closureBusy.AddItem(c))
|
||||
if (!t.IsEpsilon && !closureBusy.Add(c))
|
||||
{
|
||||
// avoid infinite recursion for EOF* and EOF+
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue