public static EnumEntryNode Parse(Lexer lex)
        {
            EnumEntryNode n = new EnumEntryNode();

            var tkn = lex.Dequeue(TokenType.Identifier);

            n.Identifier = tkn.Value;

            if (lex.DequeueIf(TokenType.Assign, out tkn))
            {
                n.Value = ConstExprNode.Parse(lex);
            }

            return(n);
        }
Exemple #2
0
        public static ConstExprNode Parse(Lexer lex)
        {
            ConstExprNode n = new ConstExprNode();

            return(n);
        }