public DirectiveParameterSyntax(IdentifierToken Identifier, EqualsToken EqualsToken, StringLiteral ParameterValue) { this.Identifier = Identifier; this.EqualsToken = EqualsToken; this.ParameterValue = ParameterValue; }
// 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