public void OnRead(LALRParser parser, TokenReadEventArgs args) { current = new CLL_token(); current.location = args.Token.Location; switch (args.Token.Symbol.Name) { case "class id": current.type = Token_Type.id; break; } current.text = args.Token.Text; }
public void OnSF(LALRParser parser, ShiftEventArgs args) { current = new CLL_token(); current.location = args.Token.Location; switch (args.Token.Symbol.Id) { case 3: current_ = 3; //current.type = Token_Type.id; break; } current.text = args.Token.Text; }