-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
gold.scroll
69 lines (58 loc) · 2.08 KB
/
gold.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import ../code/conceptPage.scroll
id gold
name GOLD
appeared 2012
tags grammarLanguage
website http://goldparser.org/
fileType text
wordRank 740
centralPackageRepositoryCount 0
country United States
originCommunity California State University, Sacramento
example
<Statement> ::= if <Expression> then <Statements> end
| while <Expression> do <Statements> end
| for Id = <Range> do <Statements> end
wikipedia https://en.wikipedia.org/wiki/GOLD_(parser)
example
<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> ')'
related antlr visual-basic assembly-language csharp d java pascal python visual-basic.net regex
summary GOLD is a free parsing system that is designed to support multiple programming languages.
pageId 8544400
dailyPageViews 14
created 2006
backlinksCount 27
revisionCount 67
appeared 2012
domainName goldparser.org
registered 2011
awisRank
2022 5276822
2017 1786723