Class: Rubasteme::Parser::Phase1Parser
- Inherits:
-
Object
- Object
- Rubasteme::Parser::Phase1Parser
show all
- Includes:
- Utils
- Defined in:
- lib/rubasteme/parser/phase1_parser.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Utils
#ast?, #ast_type?, #not_implemented_yet
Class Method Details
.version ⇒ Object
14
15
16
|
# File 'lib/rubasteme/parser/phase1_parser.rb', line 14
def self.version
Rubasteme.send(:make_version, self.name)
end
|
Instance Method Details
#parse(lexer) ⇒ Object
22
23
24
25
|
# File 'lib/rubasteme/parser/phase1_parser.rb', line 22
def parse(lexer)
return [] if lexer.nil?
parse_expression(lexer)
end
|
#version ⇒ Object
18
19
20
|
# File 'lib/rubasteme/parser/phase1_parser.rb', line 18
def version
self.class.version
end
|