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
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
e54e7b3d
Commit
e54e7b3d
authored
Mar 30, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing .opp.exp files for 3 tests.
parent
4f4280ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
0 deletions
+88
-0
bench/good/grune924.opp.exp
bench/good/grune924.opp.exp
+28
-0
bench/good/option2.opp.exp
bench/good/option2.opp.exp
+18
-0
bench/good/pxp-ucs2_to_utf8.opp.exp
bench/good/pxp-ucs2_to_utf8.opp.exp
+42
-0
No files found.
bench/good/grune924.opp.exp
0 → 100644
View file @
e54e7b3d
%start s
%token LPAR
%token MINUS
%token N
%token RPAR
%type <unit> s
%%
s:
_1 = e
{ ( () )}
e:
_1 = e _2 = MINUS _3 = t
{ ( () )}
| _1 = t
{ ( () )}
t:
_1 = N
{ ( () )}
| _1 = LPAR _2 = e _3 = RPAR
{ ( () )}
%%
bench/good/option2.opp.exp
0 → 100644
View file @
e54e7b3d
%start main
%token FOO
%type <unit> main
%%
main:
o = option2_option
{ ( o )}
option2_option:
_1 = FOO
{ ( () )}
%%
Note: the nonterminal symbol option (from option2.mly) is renamed option2_option.
bench/good/pxp-ucs2_to_utf8.opp.exp
0 → 100644
View file @
e54e7b3d
%start main
%token <int> CHAR
%token END_OF_LET
%token EOF
%token EQ
%token <string> IDENT
%token LBRACKET
%token LET
%token PIPE
%token RANGE
%token RBRACKET
%type <Types.definition list> main
%%
main:
_1 = EOF
{ ( [] )}
| _1 = declaration _2 = main
{ ( _1::_2 )}
declaration:
_1 = LET _2 = IDENT _3 = EQ _4 = regexp _5 = END_OF_LET
{ ( { Types.id = _2 ; Types.rel = _4 } )}
regexp:
_1 = regexptoken _2 = PIPE _3 = regexp
{ ( _1::_3 )}
| _1 = regexptoken
{ ( [_1] )}
regexptoken:
_1 = CHAR
{ ( Types.Char _1 )}
| _1 = LBRACKET _2 = CHAR _3 = RANGE _4 = CHAR _5 = RBRACKET
{ ( Types.Interval (_2,_4) )}
| _1 = IDENT
{ ( Types.Identifier _1 )}
%%
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