Class: Peggy::PEG::PEGCompiler

Inherits:
Builder show all
Defined in:
lib/Copy of peg.rb

Instance Attribute Summary

Attributes inherited from Builder

#parent, #productions

Attributes inherited from Peggy::Parser

#debug_flag, #ignore_productions, #parse_results, #source_text

Instance Method Summary collapse

Methods inherited from Builder

#[], #each, #eof, #lit, #many, #method_missing, #neg, #one, #opt, #parse?, #pos, #reset!, #some

Methods inherited from Peggy::Parser

#[], #allow?, #check?, #correct_regexp!, #dissallow?, #eof, #ignore?, #literal?, #match?, #parse?, #query?, #regexp?, #string?

Constructor Details

#initializePEGCompiler

Returns a new instance of PEGCompiler.



12
13
14
15
# File 'lib/Copy of peg.rb', line 12

def initialize
  super
  build
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Peggy::Builder