Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
c1e559ff
Commit
c1e559ff
authored
Nov 10, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated test and expected output.
parent
5af20d78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bench/good/symbolstartpos.mly
bench/good/symbolstartpos.mly
+2
-2
bench/good/symbolstartpos.opp.exp
bench/good/symbolstartpos.opp.exp
+3
-3
No files found.
bench/good/symbolstartpos.mly
View file @
c1e559ff
...
...
@@ -3,8 +3,8 @@
%%
(* Case: token in front. *)
main
:
A
B
hop
{
$
symbolstartpos
,
$
symbolstartofs
}
(* Case: non-nullable symbol in front. *)
hop
:
bar
A
B
{
$
symbolstartpos
}
(* Case:
epsilon symbol in front, followed with
non-nullable symbol in front. *)
hop
:
nothing
bar
A
B
{
$
symbolstartpos
}
(* Case: nullable symbol in front. *)
bar
:
foo
?
B
{
$
symbolstartpos
}
foo
:
C
nothing
{}
...
...
bench/good/symbolstartpos.opp.exp
View file @
c1e559ff
...
...
@@ -13,9 +13,9 @@ let _symbolstartofs = _symbolstartpos.Lexing.pos_cnum in
( _symbolstartpos, _symbolstartofs )}
hop:
| _1 =
bar _2 = A _3
= B
{let _symbolstartpos = _startpos__
1
_ in
( _symbolstartpos )}
| _1 =
nothing _2 = bar _3 = A _4
= B
{let _symbolstartpos = _startpos__
2
_ in
( _symbolstartpos )}
bar:
| _1 = option_foo_ _2 = B
...
...
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