Browsable Make Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: dsl/develop/make/ruchaud-brunel/extracted
Source used for this grammar: Julien Ruchaud, Pauline Brunel, Make.ecore, version 0.3, 2005/07/06 [Atlantic]

Summary

Syntax

Makefile ::=
	[name]::String [comment]::Comment [elements]::Element+
Element ::=
	Rule
Element ::=
	Macro
Rule ::=
	[dependencies]::Dependency+ [shellLines]::ShellLine+
Macro ::=
	[value]::String
ShellLine ::=
	[command]::String [display]::Boolean [ruleShellLine]::Rule
Comment ::=
	[text]::String
Dependency ::=
	RuleDep
Dependency ::=
	FileDep
RuleDep ::=
	[ruledep]::Rule
FileDep ::=
	[name]::String
String ::=
	string
Boolean ::=
	"true"
	"false"

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