![JAR search and dependency download from the Maven repository](/logo.png)
simple2.Simple2.grm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of goldengine Show documentation
Show all versions of goldengine Show documentation
Java implementation of Devin Cook's GOLD Parser engine
"Name" = 'Simple'
"Author" = 'Devin Cook'
"Version" = '2.0'
"About" = 'This is a very simple grammar designed for use in examples'
"Case Sensitive" = False
"Start Symbol" =
Comment Block @= { Nesting = All, Advance = Character }
Comment Start = '/*'
Comment End = '*/'
Comment Line = '//'
{String Ch 1} = {Printable} - ['']
{String Ch 2} = {Printable} - ["]
Id = {Letter}{AlphaNumeric}*
! String allows either single or double quotes
StringLiteral = '' {String Ch 1}* ''
| '"' {String Ch 2}* '"'
NumberLiteral = {Digit}+('.'{Digit}+)?
::=
|
::= display
| display read ID
| assign ID '='
| while do end
| if then end
| if then else end
::= '>'
| '<'
| '<='
| '>='
| '=='
| '<>'
|
::= '+'
| '-'
| '&'
|
::= '*'
| '/'
|
::= '-'
|
::= ID
| StringLiteral
| NumberLiteral
| '(' ')'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy