Class: Rattler::BackEnd::ParserGenerator::SkipGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
#gen_intermediate_skip, #gen_skip
#gen_token
#gen_assert, #gen_disallow, #gen_intermediate_assert, #gen_intermediate_disallow
#gen_intermediate_assert, #gen_intermediate_disallow, #gen_intermediate_skip, #gen_token, #initialize
Methods included from Parsers
define
Class Method Details
.top_level(*args) ⇒ Object
Instance Method Details
#gen_basic(skip, scope = {}) ⇒ Object
11
12
13
|
# File 'lib/rattler/back_end/parser_generator/skip_generator.rb', line 11
def gen_basic(skip, scope={})
generate skip.child, :skip, scope
end
|
#gen_direct_action(skip, code, scope = {}) ⇒ Object
22
23
24
25
26
27
|
# File 'lib/rattler/back_end/parser_generator/skip_generator.rb', line 22
def gen_direct_action(skip, code, scope={})
expr :block do
gen_intermediate_skip skip, scope
(@g << ' &&').newline << '(' << code.bind(scope, []) << ')'
end
end
|
#gen_dispatch_action(skip, code, scope = {}) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/rattler/back_end/parser_generator/skip_generator.rb', line 15
def gen_dispatch_action(skip, code, scope={})
expr :block do
gen_intermediate_skip skip, scope
(@g << ' &&').newline << code.bind(scope, '[]')
end
end
|
29
30
31
|
# File 'lib/rattler/back_end/parser_generator/skip_generator.rb', line 29
def gen_intermediate(skip, scope={})
gen_intermediate_skip skip, scope
end
|