Class: AdLint::Cc1::Lexer
- Inherits:
-
TokensRelexer
- Object
- TokensRelexer
- AdLint::Cc1::Lexer
- Extended by:
- Pluggable, Forwardable
- Defined in:
- lib/adlint/cc1/lexer.rb
Instance Method Summary collapse
- #disable_identifier_translation ⇒ Object
- #enable_identifier_translation ⇒ Object
-
#initialize(pp_src) ⇒ Lexer
constructor
A new instance of Lexer.
Methods included from Pluggable
Methods inherited from TokensRelexer
Constructor Details
#initialize(pp_src) ⇒ Lexer
Returns a new instance of Lexer.
41 42 43 44 45 46 47 |
# File 'lib/adlint/cc1/lexer.rb', line 41 def initialize(pp_src) super(pp_src.pp_tokens) @lst_toks = [] @nxt_tok = nil @ordinary_identifiers = OrdinaryIdentifiers.new @identifier_translation = true end |
Instance Method Details
#disable_identifier_translation ⇒ Object
65 66 67 |
# File 'lib/adlint/cc1/lexer.rb', line 65 def disable_identifier_translation @identifier_translation = false end |
#enable_identifier_translation ⇒ Object
61 62 63 |
# File 'lib/adlint/cc1/lexer.rb', line 61 def enable_identifier_translation @identifier_translation = true end |