Exemplo n.º 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;
        }
Exemplo n.º 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;
        }