Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by GOLD Parser Builder using Mybuild program template.
- # Rule productions for 'ConfigFile' grammar.
- #
- # As for symbols each rule can have a constructor that is used to produce an
- # application-specific representation of the rule data.
- # Production functions are named '$(gold_grammar)_produce-<ID>' and have the
- # following signature:
- #
- # Params:
- # 1..N: Each argument contains a value of the corresponding symbol in the RHS
- # of the rule production.
- #
- # Return:
- # The value to pass as an argument to a rule containing the production
- # of this rule in its RHS, or to return to user in case of the Start Symbol.
- #
- # If production function is not defined then the rule is produced by
- # concatenating the RHS through spaces. To reuse this default value one can
- # call 'gold_default_produce' function.
- #
- # Rule: <ConfigFile> ::= <Package> <Imports> <Configurations>
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-ConfigFile
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Package> ::= package <QualifiedName>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-Package_package
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Package> ::=
- # Args: 1..0 - Symbols in the RHS.
- define $(gold_grammar)_produce-Package
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Imports> ::= <Import> <Imports>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-Imports
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Imports> ::=
- # Args: 1..0 - Symbols in the RHS.
- define $(gold_grammar)_produce-Imports2
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Import> ::= import <QualifiedNameWithWildcard>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-Import_import
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Configurations> ::= <Configuration> <Configurations>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-Configurations
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Configurations> ::=
- # Args: 1..0 - Symbols in the RHS.
- define $(gold_grammar)_produce-Configurations2
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Configuration> ::= configuration Identifier '{' <ConfigurationMembers> '}'
- # Args: 1..5 - Symbols in the RHS.
- define $(gold_grammar)_produce-Configuration_configuration_Identifier_LBrace_RBrace
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ConfigurationMembers> ::= <ConfigurationMember> <ConfigurationMembers>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-ConfigurationMembers
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ConfigurationMembers> ::=
- # Args: 1..0 - Symbols in the RHS.
- define $(gold_grammar)_produce-ConfigurationMembers2
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ConfigurationMember> ::= <Include>
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-ConfigurationMember
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Include> ::= include <ReferenceWithInitializerList>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-Include_include
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ReferenceWithInitializerList> ::= <ReferenceWithInitializer> ',' <ReferenceWithInitializerList>
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-ReferenceWithInitializerList_Comma
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ReferenceWithInitializerList> ::= <ReferenceWithInitializer>
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-ReferenceWithInitializerList
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ReferenceWithInitializer> ::= <Reference> <Initializer>
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-ReferenceWithInitializer
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Initializer> ::= '(' <ParametersList> ')'
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-Initializer_LParan_RParan
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Initializer> ::=
- # Args: 1..0 - Symbols in the RHS.
- define $(gold_grammar)_produce-Initializer
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ParametersList> ::= <Parameter> ',' <ParametersList>
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-ParametersList_Comma
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <ParametersList> ::= <Parameter>
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-ParametersList
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Parameter> ::= <SimpleReference> '=' <Value>
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-Parameter_Eq
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Value> ::= StringLiteral
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-Value_StringLiteral
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Value> ::= NumberLiteral
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-Value_NumberLiteral
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Value> ::= BooleanLiteral
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-Value_BooleanLiteral
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <Reference> ::= <QualifiedName>
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-Reference
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <SimpleReference> ::= Identifier
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-SimpleReference_Identifier
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <QualifiedName> ::= Identifier '.' <QualifiedName>
- # Args: 1..3 - Symbols in the RHS.
- define $(gold_grammar)_produce-QualifiedName_Identifier_Dot
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <QualifiedName> ::= Identifier
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-QualifiedName_Identifier
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <QualifiedNameWithWildcard> ::= <QualifiedName> '.*'
- # Args: 1..2 - Symbols in the RHS.
- define $(gold_grammar)_produce-QualifiedNameWithWildcard_DotTimes
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
- # Rule: <QualifiedNameWithWildcard> ::= <QualifiedName>
- # Args: 1..1 - Symbols in the RHS.
- define $(gold_grammar)_produce-QualifiedNameWithWildcard
- $(gold_default_produce)# TODO Auto-generated stub!
- endef
Advertisement
Add Comment
Please, Sign In to add comment