racc.rb is Racc driver. It load file, compile, and create Ruby source file.
To compile racc file with racc.rb, in example
racc.rb mailparser.yThis create file 'mailparser.tab.rb'. To designate filename, use -o option.
If you know yacc, maybe you want to see 'y.output', which discript parser details. Racc can create it too. -v option do it. It's filename is in this example, 'mailparser.output'.racc.rb uses three spetial user codes, 'inner', 'prepare', 'driver'. 'inner' is code which is copied in parser class definition. 'prepare' is code which is copied in AFTER class definition. 'driver' placed AFTER class.
These codes can be omitted or given its filename from command line.
Command line options
racc.rb [-clvhgP] [--version] [--help] [-ooutfile] [-epath] [-nclassname] [-iinner] [-pprepare] [-ddriver] filename [corefile]