Measures Concepts
GitHub icon

GOLD

GOLD - Grammar language

< >

GOLD is a grammar language created in 2012.

#720on PLDB 12Years Old

GOLD is a free parsing system that is designed to support multiple programming languages.. Read more on Wikipedia...


Example from the web:
<Statement> ::= if <Expression> then <Statements> end | while <Expression> do <Statements> end | for Id = <Range> do <Statements> end
Example from Wikipedia:
<Statements> ::= <Statements> <Statement> | <Statement> <Statement> ::= display <Expression> | display <Expression> read ID | assign ID '=' <Expression> | while <Expression> do <Statements> end | if <Expression> then <Statements> end | if <Expression> then <Statements> else <Statements> end <Expression> ::= <Expression> '>' <Add Exp> | <Expression> '<' <Add Exp> | <Expression> '<=' <Add Exp> | <Expression> '>=' <Add Exp> | <Expression> '==' <Add Exp> | <Expression> '<>' <Add Exp> | <Add Exp> <Add Exp> ::= <Add Exp> '+' <Mult Exp> | <Add Exp> '-' <Mult Exp> | <Add Exp> '&' <Mult Exp> | <Mult Exp> <Mult Exp> ::= <Mult Exp> '*' <Negate Exp> | <Mult Exp> '/' <Negate Exp> | <Negate Exp> <Negate Exp> ::= '-' <Value> | <Value> <Value> ::= Identifier | StringLiteral | NumberLiteral | '(' <Expression> ')'

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout