class Nasl::Parser

Public Class Methods

new() click to toggle source
# File lib/nasl/parser.rb, line 36
def initialize
  @grammar = Grammar.new
  @env = Tree.new
end

Public Instance Methods

parse(code, path="(unknown)") click to toggle source
# File lib/nasl/parser.rb, line 41
def parse(code, path="(unknown)")
  @grammar.parse(@env, code, path)
end