abusalimov

configfile-rules.mk

Mar 12th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 6.76 KB | None | 0 0
  1. # Generated by GOLD Parser Builder using Mybuild program template.
  2.  
  3. # Rule productions for 'ConfigFile' grammar.
  4.  
  5. #
  6. # As for symbols each rule can have a constructor that is used to produce an
  7. # application-specific representation of the rule data.
  8. # Production functions are named '$(gold_grammar)_produce-<ID>' and have the
  9. # following signature:
  10. #
  11. # Params:
  12. #   1..N: Each argument contains a value of the corresponding symbol in the RHS
  13. #         of the rule production.
  14. #
  15. # Return:
  16. #   The value to pass as an argument to a rule containing the production
  17. #   of this rule in its RHS, or to return to user in case of the Start Symbol.
  18. #
  19. # If production function is not defined then the rule is produced by
  20. # concatenating the RHS through spaces. To reuse this default value one can
  21. # call 'gold_default_produce' function.
  22. #
  23.  
  24. # Rule: <ConfigFile> ::= <Package> <Imports> <Configurations>
  25. # Args: 1..3 - Symbols in the RHS.
  26. define $(gold_grammar)_produce-ConfigFile
  27.     $(gold_default_produce)# TODO Auto-generated stub!
  28. endef
  29.  
  30. # Rule: <Package> ::= package <QualifiedName>
  31. # Args: 1..2 - Symbols in the RHS.
  32. define $(gold_grammar)_produce-Package_package
  33.     $(gold_default_produce)# TODO Auto-generated stub!
  34. endef
  35.  
  36. # Rule: <Package> ::=
  37. # Args: 1..0 - Symbols in the RHS.
  38. define $(gold_grammar)_produce-Package
  39.     $(gold_default_produce)# TODO Auto-generated stub!
  40. endef
  41.  
  42. # Rule: <Imports> ::= <Import> <Imports>
  43. # Args: 1..2 - Symbols in the RHS.
  44. define $(gold_grammar)_produce-Imports
  45.     $(gold_default_produce)# TODO Auto-generated stub!
  46. endef
  47.  
  48. # Rule: <Imports> ::=
  49. # Args: 1..0 - Symbols in the RHS.
  50. define $(gold_grammar)_produce-Imports2
  51.     $(gold_default_produce)# TODO Auto-generated stub!
  52. endef
  53.  
  54. # Rule: <Import> ::= import <QualifiedNameWithWildcard>
  55. # Args: 1..2 - Symbols in the RHS.
  56. define $(gold_grammar)_produce-Import_import
  57.     $(gold_default_produce)# TODO Auto-generated stub!
  58. endef
  59.  
  60. # Rule: <Configurations> ::= <Configuration> <Configurations>
  61. # Args: 1..2 - Symbols in the RHS.
  62. define $(gold_grammar)_produce-Configurations
  63.     $(gold_default_produce)# TODO Auto-generated stub!
  64. endef
  65.  
  66. # Rule: <Configurations> ::=
  67. # Args: 1..0 - Symbols in the RHS.
  68. define $(gold_grammar)_produce-Configurations2
  69.     $(gold_default_produce)# TODO Auto-generated stub!
  70. endef
  71.  
  72. # Rule: <Configuration> ::= configuration Identifier '{' <ConfigurationMembers> '}'
  73. # Args: 1..5 - Symbols in the RHS.
  74. define $(gold_grammar)_produce-Configuration_configuration_Identifier_LBrace_RBrace
  75.     $(gold_default_produce)# TODO Auto-generated stub!
  76. endef
  77.  
  78. # Rule: <ConfigurationMembers> ::= <ConfigurationMember> <ConfigurationMembers>
  79. # Args: 1..2 - Symbols in the RHS.
  80. define $(gold_grammar)_produce-ConfigurationMembers
  81.     $(gold_default_produce)# TODO Auto-generated stub!
  82. endef
  83.  
  84. # Rule: <ConfigurationMembers> ::=
  85. # Args: 1..0 - Symbols in the RHS.
  86. define $(gold_grammar)_produce-ConfigurationMembers2
  87.     $(gold_default_produce)# TODO Auto-generated stub!
  88. endef
  89.  
  90. # Rule: <ConfigurationMember> ::= <Include>
  91. # Args: 1..1 - Symbols in the RHS.
  92. define $(gold_grammar)_produce-ConfigurationMember
  93.     $(gold_default_produce)# TODO Auto-generated stub!
  94. endef
  95.  
  96. # Rule: <Include> ::= include <ReferenceWithInitializerList>
  97. # Args: 1..2 - Symbols in the RHS.
  98. define $(gold_grammar)_produce-Include_include
  99.     $(gold_default_produce)# TODO Auto-generated stub!
  100. endef
  101.  
  102. # Rule: <ReferenceWithInitializerList> ::= <ReferenceWithInitializer> ',' <ReferenceWithInitializerList>
  103. # Args: 1..3 - Symbols in the RHS.
  104. define $(gold_grammar)_produce-ReferenceWithInitializerList_Comma
  105.     $(gold_default_produce)# TODO Auto-generated stub!
  106. endef
  107.  
  108. # Rule: <ReferenceWithInitializerList> ::= <ReferenceWithInitializer>
  109. # Args: 1..1 - Symbols in the RHS.
  110. define $(gold_grammar)_produce-ReferenceWithInitializerList
  111.     $(gold_default_produce)# TODO Auto-generated stub!
  112. endef
  113.  
  114. # Rule: <ReferenceWithInitializer> ::= <Reference> <Initializer>
  115. # Args: 1..2 - Symbols in the RHS.
  116. define $(gold_grammar)_produce-ReferenceWithInitializer
  117.     $(gold_default_produce)# TODO Auto-generated stub!
  118. endef
  119.  
  120. # Rule: <Initializer> ::= '(' <ParametersList> ')'
  121. # Args: 1..3 - Symbols in the RHS.
  122. define $(gold_grammar)_produce-Initializer_LParan_RParan
  123.     $(gold_default_produce)# TODO Auto-generated stub!
  124. endef
  125.  
  126. # Rule: <Initializer> ::=
  127. # Args: 1..0 - Symbols in the RHS.
  128. define $(gold_grammar)_produce-Initializer
  129.     $(gold_default_produce)# TODO Auto-generated stub!
  130. endef
  131.  
  132. # Rule: <ParametersList> ::= <Parameter> ',' <ParametersList>
  133. # Args: 1..3 - Symbols in the RHS.
  134. define $(gold_grammar)_produce-ParametersList_Comma
  135.     $(gold_default_produce)# TODO Auto-generated stub!
  136. endef
  137.  
  138. # Rule: <ParametersList> ::= <Parameter>
  139. # Args: 1..1 - Symbols in the RHS.
  140. define $(gold_grammar)_produce-ParametersList
  141.     $(gold_default_produce)# TODO Auto-generated stub!
  142. endef
  143.  
  144. # Rule: <Parameter> ::= <SimpleReference> '=' <Value>
  145. # Args: 1..3 - Symbols in the RHS.
  146. define $(gold_grammar)_produce-Parameter_Eq
  147.     $(gold_default_produce)# TODO Auto-generated stub!
  148. endef
  149.  
  150. # Rule: <Value> ::= StringLiteral
  151. # Args: 1..1 - Symbols in the RHS.
  152. define $(gold_grammar)_produce-Value_StringLiteral
  153.     $(gold_default_produce)# TODO Auto-generated stub!
  154. endef
  155.  
  156. # Rule: <Value> ::= NumberLiteral
  157. # Args: 1..1 - Symbols in the RHS.
  158. define $(gold_grammar)_produce-Value_NumberLiteral
  159.     $(gold_default_produce)# TODO Auto-generated stub!
  160. endef
  161.  
  162. # Rule: <Value> ::= BooleanLiteral
  163. # Args: 1..1 - Symbols in the RHS.
  164. define $(gold_grammar)_produce-Value_BooleanLiteral
  165.     $(gold_default_produce)# TODO Auto-generated stub!
  166. endef
  167.  
  168. # Rule: <Reference> ::= <QualifiedName>
  169. # Args: 1..1 - Symbols in the RHS.
  170. define $(gold_grammar)_produce-Reference
  171.     $(gold_default_produce)# TODO Auto-generated stub!
  172. endef
  173.  
  174. # Rule: <SimpleReference> ::= Identifier
  175. # Args: 1..1 - Symbols in the RHS.
  176. define $(gold_grammar)_produce-SimpleReference_Identifier
  177.     $(gold_default_produce)# TODO Auto-generated stub!
  178. endef
  179.  
  180. # Rule: <QualifiedName> ::= Identifier '.' <QualifiedName>
  181. # Args: 1..3 - Symbols in the RHS.
  182. define $(gold_grammar)_produce-QualifiedName_Identifier_Dot
  183.     $(gold_default_produce)# TODO Auto-generated stub!
  184. endef
  185.  
  186. # Rule: <QualifiedName> ::= Identifier
  187. # Args: 1..1 - Symbols in the RHS.
  188. define $(gold_grammar)_produce-QualifiedName_Identifier
  189.     $(gold_default_produce)# TODO Auto-generated stub!
  190. endef
  191.  
  192. # Rule: <QualifiedNameWithWildcard> ::= <QualifiedName> '.*'
  193. # Args: 1..2 - Symbols in the RHS.
  194. define $(gold_grammar)_produce-QualifiedNameWithWildcard_DotTimes
  195.     $(gold_default_produce)# TODO Auto-generated stub!
  196. endef
  197.  
  198. # Rule: <QualifiedNameWithWildcard> ::= <QualifiedName>
  199. # Args: 1..1 - Symbols in the RHS.
  200. define $(gold_grammar)_produce-QualifiedNameWithWildcard
  201.     $(gold_default_produce)# TODO Auto-generated stub!
  202. endef
Advertisement
Add Comment
Please, Sign In to add comment