Class: CTokenizer::LexerBase
- Inherits:
-
Object
- Object
- CTokenizer::LexerBase
- Includes:
- CTokenizer, Sourced, Enumerable
- Defined in:
- lib/caphir/ctokenizer.rb
Overview
wraps a lexer and uses that to produce new tokens
Direct Known Subclasses
CLexer, CPLexer, SkipMacros, Splitter, Caphir::SimpleCParser, DBC::Parser
Constant Summary
Constants included from CTokenizer
CP_RESERVED, C_RESERVED, EOF_TOKEN
Instance Attribute Summary
Attributes included from Sourced
Instance Method Summary collapse
-
#initialize(str, file = nil, line = 1) ⇒ LexerBase
constructor
A new instance of LexerBase.
Methods included from Sourced
#empty?, #file, #file=, #line, #line=, #match?, #scan, #shift
Methods included from CTokenizer
#collect, #each, #error, error, line_count, #parse_error, #to_a, #token_error, #unmatched_error, #warning