protected Token mccFillToken() { Token t = Token.NewToken(mccmatchedKind); t.kind = mccmatchedKind; string im = mccstrLiteralImages[mccmatchedKind]; t.image = (im == null) ? input_stream.GetImage() : im; t.beginLine = input_stream.BeginLine; t.beginColumn = input_stream.BeginColumn; t.endLine = input_stream.EndLine; t.endColumn = input_stream.EndColumn; return(t); }
protected Token JjFillToken() { Token t; string curTokenImage; int beginLine; int endLine; int beginColumn; int endColumn; string im = jjstrLiteralImages[jjmatchedKind]; curTokenImage = im ?? input_stream.GetImage(); beginLine = input_stream.GetBeginLine(); beginColumn = input_stream.GetBeginColumn(); endLine = input_stream.GetEndLine(); endColumn = input_stream.GetEndColumn(); t = Token.NewToken(jjmatchedKind, curTokenImage); t.beginLine = beginLine; t.endLine = endLine; t.beginColumn = beginColumn; t.endColumn = endColumn; return(t); }