started working on chemical (arc config), also removed files/config as that is now handled by parser/csv

This commit is contained in:
herbglitch 2024-12-22 23:31:31 -07:00
parent 8496ea4a40
commit 4b59d5c062
4 changed files with 15 additions and 162 deletions

View file

@ -1,48 +1,19 @@
<configLanguage> -> <configLanguageBody> EOF
<language> -> <group> <language> | <variableLine> <language> | <whitespace> <language>
<configLanguageBody> -> <configPreDefines> <configComment> <configGroup> <configFunction> <configFunctionCall> <configVariableLine> <configLanguageBody> | LAMBDA
<configPreDefines> -> <preDefines> | LAMBDA
<configComment> -> <comment> | LAMBDA
<configGroup> -> <group> | LAMBDA
<configFunction> -> <function> | LAMBDA
<configFunctionCall> -> <functionCall> | LAMBDA
<configVariableLine> -> <variableLine> | LAMBDA
<group> -> <groupName> <whitespace> <variable> <whitespace> LEFT_CURLY_BRACE <whitespace> <variableLine> <whitespace> RIGHT_CURLY_BRACE
<preDefines> -> HASH <preDefineRule>
<preDefineRule> -> <preDefineInclude> | <preDefineExclude>
<variableLine> -> <type> <whitespace> <variable> <whitespace> EQUALS <whitespace> value <whitespace> SEMICOLON <whitespace>
<comment> -> <commentSingleLine> | <commentMultiLine>
<commentSingleLine> -> SLASH SLASH <commentContents> | NEWLINE
<commentMultiLine> -> SLASH ASTERISK <commentContents> ASTERISK SLASH
<commentContents> -> STRING <commentContents> | LAMBDA
<groupName> -> <variable>
<type> -> <variable>
<value> -> <variable> | <number> | <nestedValue>
<nestedValue> -> OPEN_CURLY_BRACE <whitespace> <valueArgs> <whitespace> CLOSE_CURLY_BRACE
<valueArgs> -> <value> | <value> COMMA <valueArgs>
<group> -> <groupName> LEFT_CURLY_BRACE <configLanguage> RIGHT_CURLY_BRACE
<groupRef> -> <parameter> COLON COLON <parameter>
<variable> -> ALPHA_UPPER_CHAR <variableName> | ALPHA_LOWER_CHAR <variableName> | UNDERSCORE <variableName>
<variableName> -> <charOrNum> <variableName> | LAMBDA
<charOrNum> -> ALPHA_UPPER_CHAR | ALPHA_LOWER_CHAR | UNDERSCORE | NUM
<function> -> <parameter> LEFT_PAREN <parameterList> RIGHT_PAREN LEFT_CURLY_BRACE <configLanguage> RIGHT_CURLY_BRACE
<parameterList> -> <type> <parameter> <parameterListItem> | LAMBDA
<parameterListItem> -> COMMA <type> <parameter> <parameterListItem> | LAMBDA
<number> -> NUMBER <number> | NUMBER LAMBDA
<variableLine> -> <variableCreate> <variable> EQUALS <variableData> SEMICOLON
<variableCreate> -> <type> | LAMBDA
<variableData> -> <equation> | <variableOption>
<equation> -> <equationFormula> | <encapsulation>
<equationFormula> -> <equationData> SYMBOL <equationData>
<equationData> -> LEFT_PAREN <equation> RIGHT_PAREN | <data>
<variableOption> -> <data> | <dataList>
<data> -> <variable> | <value>
<dataList> -> LEFT_CURLY_BRACE <variableData> <dataListItem> RIGHT_CURLY_BRACE SEMICOLON
<dataListItem> -> COMMA <variableData> <dataListItem> | LAMBDA
<functionCall> -> <functionName> LEFT_PAREN <valueList> <RIGHT_PAREN> SEMICOLON
<valueList> -> <value> <valueListItem>
<valueListItem> -> COMMA <value> <valueListItem>
<groupName> -> <variable>
<functionName> -> <variable>
<type> -> <variable>
<value> -> <variable> | NUM
<variable> -> CHAR <variableName>
<variableName> -> <charOrNum> <variableName> | LAMBDA
<charOrNum> -> CHAR | NUM
<whitespace> -> SPACE <whitespace> | TAB <whitespace> | NEWLINE <whitespace> | LAMBDA