Class: CTokenizer::CPLexer
Overview
C Preprocessor Lexer
Constant Summary
Constants included from CTokenizer
CP_RESERVED, C_RESERVED, EOF_TOKEN
Instance Attribute Summary
Attributes inherited from LexerBase
Instance Method Summary collapse
Methods inherited from LexerBase
#empty?, #file, #initialize, #line, #match?, #post_match, #scan
Methods included from CTokenizer
check_token, #collect, #each, #error, error, line_count, #parse_error, #to_a, #token_error, #warning, whitespace?
Constructor Details
This class inherits a constructor from CTokenizer::LexerBase
Instance Method Details
#shift ⇒ Object
406 407 408 409 |
# File 'lib/dbc/ctokenizer.rb', line 406 def shift t = super CP_RESERVED.fetch(t.at(1), t) end |