-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
jison.scroll
144 lines (120 loc) · 2.36 KB
/
jison.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import ../code/conceptPage.scroll
id jison
name Jison
appeared 2009
tags pl
website http://zaa.ch/jison/
latestVersion 0.4.18
isOpenSource true
writtenIn javascript csharp html json css xml ruby markdown yaml php yacc make
fileType text
documentation https://gerhobbelt.github.io/jison/docs/
centralPackageRepositoryCount 0
repoStats
firstCommit 2009
commits 709
committers 58
files 141
newestCommit 2020
country Various
originCommunity https://github.com/zaach/jison/issues
githubRepo https://github.com/zaach/jison
stars 4136
forks 450
subscribers 108
created 2009
updated 2022
firstCommit 2009
description Bison in JavaScript.
issues 156
multiLineCommentTokens /* */
hasMultiLineComments true
/* A comment
*/
hasComments true
/* A comment
*/
hasSemanticIndentation false
linguistGrammarRepo https://github.com/cdibbs/language-jison
firstCommit 2014
lastCommit 2018
committerCount 9
commitCount 131
sampleCount 3
example
/* description: ClassyLang grammar. Very classy. */
/*
To build parser:
$ ./bin/jison examples/classy.jison examples/classy.jisonlex
*/
/* author: Zach Carter */
%right ASSIGN
%left OR
%nonassoc EQUALITY GREATER
%left PLUS MINUS
%left TIMES
%right NOT
%left DOT
%%
pgm
: cdl MAIN LBRACE vdl el RBRACE ENDOFFILE
;
cdl
: c cdl
|
;
c
: CLASS id EXTENDS id LBRACE vdl mdl RBRACE
;
vdl
: VAR t id SEMICOLON vdl
|
;
mdl
: t id LPAREN t id RPAREN LBRACE vdl el RBRACE mdl
|
;
t
: NATTYPE
| id
;
id
: ID
;
el
: e SEMICOLON el
| e SEMICOLON
;
e
: NATLITERAL
| NUL
| id
| NEW id
| THIS
| IF LPAREN e RPAREN LBRACE el RBRACE ELSE LBRACE el RBRACE
| FOR LPAREN e SEMICOLON e SEMICOLON e RPAREN LBRACE el RBRACE
| READNAT LPAREN RPAREN
| PRINTNAT LPAREN e RPAREN
| e PLUS e
| e MINUS e
| e TIMES e
| e EQUALITY e
| e GREATER e
| NOT e
| e OR e
| e DOT id
| id ASSIGN e
| e DOT id ASSIGN e
| id LPAREN e RPAREN
| e DOT id LPAREN e RPAREN
| LPAREN e RPAREN
;
isbndb 0
githubLanguage Jison
fileExtensions jison
trendingProjectsCount 0
type programming
group Yacc
aceMode text
tmScope source.jison
repos 0