Browsable AWK Grammar

CC-BY

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

Summary

Syntax

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

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []