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
grew
libcaml-grew
Commits
b2f5aa46
Commit
b2f5aa46
authored
May 26, 2017
by
Bruno Guillaume
Browse files
remove useless tokens
parent
ab02cce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/grew_lexer.mll
View file @
b2f5aa46
...
...
@@ -135,7 +135,6 @@ and label_parser target = parse
| "
re
\
""
{
Buffer
.
clear
buff
;
string_lex
true
global
lexbuf
}
|
"]->"
{
Global
.
label_flag
:=
false
;
LTR_EDGE_RIGHT
}
|
"]-"
{
Global
.
label_flag
:=
false
;
RTL_EDGE_RIGHT
}
|
"]=>"
{
Global
.
label_flag
:=
false
;
ARROW_RIGHT
}
|
_
as
c
{
raise
(
Error
(
sprintf
"unexpected character '%c'"
c
))
}
...
...
@@ -228,8 +227,6 @@ and standard target = parse
|
"-[^"
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT_NEG
}
|
"-["
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT
}
|
"]->"
{
LTR_EDGE_RIGHT
}
|
"<-["
{
Global
.
label_flag
:=
true
;
RTL_EDGE_LEFT
}
|
"]-"
{
RTL_EDGE_RIGHT
}
|
"==>"
{
ARROW
}
|
"=["
{
Global
.
label_flag
:=
true
;
ARROW_LEFT
}
...
...
src/grew_parser.mly
View file @
b2f5aa46
...
...
@@ -63,8 +63,6 @@ let localize t = (t,get_loc ())
%
token
LTR_EDGE_LEFT
/*
-
[
*/
%
token
LTR_EDGE_LEFT_NEG
/*
-
[
^
*/
%
token
LTR_EDGE_RIGHT
/*
]
->
*/
%
token
RTL_EDGE_LEFT
/*
<-
[
*/
%
token
RTL_EDGE_RIGHT
/*
]
-
*/
%
token
ARROW
/*
==>
*/
%
token
ARROW_LEFT
/*
=
[
*/
...
...
Write
Preview
Supports
Markdown
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