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]
Makefile
, Element
, Rule
, Macro
, ShellLine
, Comment
, Dependency
, RuleDep
, FileDep
, String
, Boolean
), 0 root (—), 1 top (Makefile
), 0 bottom (—).[name]
2, [comment]
, [elements]
, [dependencies]
, [shellLines]
, [value]
, [command]
, [display]
, [ruleShellLine]
, [text]
, [ruledep]
.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"