Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphaël Cauderlier
Sigmaid
Commits
5695ed9d
Commit
5695ed9d
authored
Jun 27, 2014
by
Raphaël Cauderlier
Browse files
Parsing is done line by line so don't define a programm rule
parent
50387262
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser.mly
View file @
5695ed9d
...
...
@@ -23,10 +23,6 @@
%%
prog
:
/*
empty
*/
{
[]
}
|
line
prog
{
$
1
::
$
2
}
;
line
:
TYPE
CID
DEF
ty
DOT
{
(
$
1
,
Typedef
(
Cid
(
$
2
)
,
$
4
))
}
|
VAR
ID
COLUMN
ty
DEF
term
DOT
{
(
$
1
,
Vardef
(
Id
(
$
2
)
,
$
4
,
$
6
))
}
|
CHECK
term
COLUMN
ty
DOT
{
(
$
1
,
Check
(
$
2
,
$
4
))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment