Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: awk/bruneliere/extracted
Source used for this grammar: Hugo Brunelière, AWKPrograms.ecore
, 2005/08/09
Integer
, String
, Boolean
, AWKProgram
, File
, Record
, Field
, Script
, Rule
, Pattern
, Action
, Instruction
, InitialRule
, FinalRule
), 0 root (—), 3 top (Integer
, Boolean
, AWKProgram
), 0 bottom (—).[name]
3, [input]
, [output]
, [script]
, [records]
, [r_file]
, [fields]
, [value]
2, [f_record]
, [rules]
, [r_script]
3, [pattern]
3, [action]
3, [regularExpression]
, [instructions]
, [i_action]
.Integer ::= integer
String ::= string
Boolean ::= "true" "false"
AWKProgram ::= [name]::String [input]::File [output]::File [script]::Script
File ::=
[name]::String [records]::Record
Record ::=
[r_file]::File [fields]::Field
Field ::= [value]::String [f_record]::Record
Script ::=
[name]::String [rules]::Rule
Rule ::= InitialRule
Rule ::= FinalRule
Rule ::= [r_script]::Script [pattern]::Pattern [action]::Action
Pattern ::= [regularExpression]::String
Action ::=
[instructions]::Instruction
Instruction ::= [value]::String [i_action]::Action
InitialRule ::= [r_script]::Script [pattern]::Pattern [action]::Action
FinalRule ::= [r_script]::Script [pattern]::Pattern [action]::Action