Class: Code::Parser::Nothing
Instance Method Summary
collapse
Methods inherited from Language
<<, >>, absent, aka, #any, ignore, #inspect, maybe, parse, #parse, repeat, #str, then, #to_s, |
Instance Method Details
#nil_keyword ⇒ Object
12
13
14
|
# File 'lib/code/parser/nothing.rb', line 12
def nil_keyword
str("nil")
end
|
#nothing_keyword ⇒ Object
4
5
6
|
# File 'lib/code/parser/nothing.rb', line 4
def nothing_keyword
str("nothing")
end
|
#null_keyword ⇒ Object
8
9
10
|
# File 'lib/code/parser/nothing.rb', line 8
def null_keyword
str("null")
end
|
16
17
18
19
|
# File 'lib/code/parser/nothing.rb', line 16
def root
(nothing_keyword | null_keyword | nil_keyword).aka(:nothing) |
::Code::Parser::Group
end
|