DefineToken() public méthode

public DefineToken ( string text, int tokenType ) : void
text string
tokenType int
Résultat void
        protected override void DefineTokenNamesAndLiteralsInGrammar( Grammar root )
        {
            foreach ( var token in _tokens )
            {
                root.DefineToken( token.Key, token.Value );
            }

            foreach ( var lit in _stringLiterals )
            {
                root.DefineToken( lit.Key, lit.Value );
            }
        }