Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }