Class: Janeway::AST::Identifier
- Inherits:
-
Expression
- Object
- Expression
- Janeway::AST::Identifier
- Defined in:
- lib/janeway/ast/identifier.rb
Constant Summary collapse
- EXPECTED_NEXT_TOKENS =
Tokens which may follow an identifier string
I[ \n + - * / == != > < >= <= && || ].freeze
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from Expression
#indented, #initialize, #literal?, #singular_query?, #tree, #type
Constructor Details
This class inherits a constructor from Janeway::AST::Expression
Instance Method Details
#expects?(next_token) ⇒ Boolean
30 31 32 |
# File 'lib/janeway/ast/identifier.rb', line 30 def expects?(next_token) EXPECTED_NEXT_TOKENS.include?(next_token) end |
#to_s ⇒ String
26 27 28 |
# File 'lib/janeway/ast/identifier.rb', line 26 def to_s @value end |