Пример #1
0
        public DirectiveParameterSyntax(IdentifierToken Identifier, EqualsToken EqualsToken, StringLiteral ParameterValue)
        {
            this.Identifier = Identifier;

            this.EqualsToken = EqualsToken;

            this.ParameterValue = ParameterValue;
        }
Пример #2
0
        // Token
        public bool TryParseEqualsToken(Lexer lexer, out EqualsToken result)
        {
            var next = lexer.Next();

            if (next.Text == "=")
            {
                result = new EqualsToken(next);
                return(true);
            }

            result = null;
            return(false);
        }         // Parse method end