Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcaml-grew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
grew
libcaml-grew
Commits
b2f5aa46
Commit
b2f5aa46
authored
May 26, 2017
by
Bruno Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless tokens
parent
ab02cce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
src/grew_lexer.mll
src/grew_lexer.mll
+0
-3
src/grew_parser.mly
src/grew_parser.mly
+0
-2
No files found.
src/grew_lexer.mll
View file @
b2f5aa46
...
@@ -135,7 +135,6 @@ and label_parser target = parse
...
@@ -135,7 +135,6 @@ and label_parser target = parse
| "
re
\
""
{
Buffer
.
clear
buff
;
string_lex
true
global
lexbuf
}
| "
re
\
""
{
Buffer
.
clear
buff
;
string_lex
true
global
lexbuf
}
|
"]->"
{
Global
.
label_flag
:=
false
;
LTR_EDGE_RIGHT
}
|
"]->"
{
Global
.
label_flag
:=
false
;
LTR_EDGE_RIGHT
}
|
"]-"
{
Global
.
label_flag
:=
false
;
RTL_EDGE_RIGHT
}
|
"]=>"
{
Global
.
label_flag
:=
false
;
ARROW_RIGHT
}
|
"]=>"
{
Global
.
label_flag
:=
false
;
ARROW_RIGHT
}
|
_
as
c
{
raise
(
Error
(
sprintf
"unexpected character '%c'"
c
))
}
|
_
as
c
{
raise
(
Error
(
sprintf
"unexpected character '%c'"
c
))
}
...
@@ -228,8 +227,6 @@ and standard target = parse
...
@@ -228,8 +227,6 @@ and standard target = parse
|
"-[^"
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT_NEG
}
|
"-[^"
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT_NEG
}
|
"-["
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT
}
|
"-["
{
Global
.
label_flag
:=
true
;
LTR_EDGE_LEFT
}
|
"]->"
{
LTR_EDGE_RIGHT
}
|
"]->"
{
LTR_EDGE_RIGHT
}
|
"<-["
{
Global
.
label_flag
:=
true
;
RTL_EDGE_LEFT
}
|
"]-"
{
RTL_EDGE_RIGHT
}
|
"==>"
{
ARROW
}
|
"==>"
{
ARROW
}
|
"=["
{
Global
.
label_flag
:=
true
;
ARROW_LEFT
}
|
"=["
{
Global
.
label_flag
:=
true
;
ARROW_LEFT
}
...
...
src/grew_parser.mly
View file @
b2f5aa46
...
@@ -63,8 +63,6 @@ let localize t = (t,get_loc ())
...
@@ -63,8 +63,6 @@ let localize t = (t,get_loc ())
%
token
LTR_EDGE_LEFT
/*
-
[
*/
%
token
LTR_EDGE_LEFT
/*
-
[
*/
%
token
LTR_EDGE_LEFT_NEG
/*
-
[
^
*/
%
token
LTR_EDGE_LEFT_NEG
/*
-
[
^
*/
%
token
LTR_EDGE_RIGHT
/*
]
->
*/
%
token
LTR_EDGE_RIGHT
/*
]
->
*/
%
token
RTL_EDGE_LEFT
/*
<-
[
*/
%
token
RTL_EDGE_RIGHT
/*
]
-
*/
%
token
ARROW
/*
==>
*/
%
token
ARROW
/*
==>
*/
%
token
ARROW_LEFT
/*
=
[
*/
%
token
ARROW_LEFT
/*
=
[
*/
...
...
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