Module: Yap::Shell::Parser
- Defined in:
- lib/yap/shell/parser.rb,
lib/yap/shell/parser_impl.rb,
lib/yap/shell/parser/version.rb
Defined Under Namespace
Modules: Nodes
Classes: Lexer, ParseError
Constant Summary
collapse
- VERSION =
"0.7.2"
Class Method Summary
collapse
Class Method Details
.each_command_substitution_for(input, &blk) ⇒ Object
.parse(input) ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/yap/shell/parser.rb', line 9
def parse(input)
debug_log "#parse entry with: #{input.inspect}"
Yap::Shell::ParserImpl.new.parse(input).tap do |results|
debug_log "#parse exit returning: #{results.inspect}"
end
rescue Racc::ParseError => ex
raise ParseError, "Message: #{ex.message}\nInput: #{input}"
end
|