Class: Nasl::Parser
- Inherits:
-
Object
- Object
- Nasl::Parser
- Defined in:
- lib/nasl/parser.rb
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse(code, path = "(unknown)") ⇒ Object
Constructor Details
Instance Method Details
#parse(code, path = "(unknown)") ⇒ Object
41 42 43 |
# File 'lib/nasl/parser.rb', line 41 def parse(code, path="(unknown)") @grammar.parse(@env, code, path) end |