Class: MkAcl::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/mikras_utils/mkacl/parser.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Parser

Returns a new instance of Parser.



7
8
9
10
# File 'lib/mikras_utils/mkacl/parser.rb', line 7

def initialize(file)
  @file = file
  @symtab = SimpleSymtab::SimpleSymtab.new
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



4
5
6
# File 'lib/mikras_utils/mkacl/parser.rb', line 4

def file
  @file
end

#symtabObject (readonly)

Returns the value of attribute symtab.



5
6
7
# File 'lib/mikras_utils/mkacl/parser.rb', line 5

def symtab
  @symtab
end

Class Method Details

.parse(file) ⇒ Object



12
# File 'lib/mikras_utils/mkacl/parser.rb', line 12

def self.parse(file) Parser.new(file).parse end

Instance Method Details

#parseObject



11
# File 'lib/mikras_utils/mkacl/parser.rb', line 11

def parse() parse_spec end