Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
2949b951
Commit
2949b951
authored
Jan 04, 2015
by
POTTIER Francois
Browse files
Removed EMaxInt (no longer used).
parent
eb8e5dbe
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/IL.mli
View file @
2949b951
...
...
@@ -162,7 +162,6 @@ and expr =
|
EUnit
|
EIntConst
of
int
|
EMaxInt
|
EStringConst
of
string
|
EData
of
string
*
expr
list
|
ETuple
of
expr
list
...
...
src/printer.ml
View file @
2949b951
...
...
@@ -267,7 +267,6 @@ let rec member e k =
|
ERecord
_
|
ERecordAccess
(
_
,
_
)
|
EIntConst
_
|
EMaxInt
|
EStringConst
_
|
EUnit
|
EArray
_
...
...
@@ -365,8 +364,6 @@ and exprk k f e =
fprintf
f
"%d"
k
else
fprintf
f
"(%d)"
k
|
EMaxInt
->
fprintf
f
"max_int"
|
EStringConst
s
->
fprintf
f
"
\"
%s
\"
"
(
String
.
escaped
s
)
|
ETuple
[]
->
...
...
src/rawPrinter.ml
View file @
2949b951
...
...
@@ -126,8 +126,6 @@ let rec expr e =
node
"unit"
[]
|
EIntConst
k
->
node
"int"
[
int
k
]
|
EMaxInt
->
node
"max_int"
[]
|
EStringConst
s
->
node
"string"
[
string
s
]
|
ETuple
es
->
...
...
src/tableBackend.ml
View file @
2949b951
...
...
@@ -327,7 +327,6 @@ let div a b =
let
rec
size
unboxed
=
function
|
EIntConst
_
|
EMaxInt
|
ETuple
[]
|
EData
(
_
,
[]
)
->
if
unboxed
then
0
else
1
...
...
src/traverse.ml
View file @
2949b951
...
...
@@ -88,8 +88,6 @@ class virtual ['env] map = object (self)
self
#
eunit
env
|
EIntConst
k
->
self
#
eintconst
env
k
|
EMaxInt
->
self
#
emaxint
env
|
EStringConst
s
->
self
#
estringconst
env
s
|
EData
(
d
,
es
)
->
...
...
@@ -193,9 +191,6 @@ class virtual ['env] map = object (self)
method
eintconst
_env
_k
=
raise
NoChange
method
emaxint
_env
=
raise
NoChange
method
estringconst
_env
_s
=
raise
NoChange
...
...
@@ -373,8 +368,6 @@ class virtual ['env, 'a] fold = object (self)
self
#
eunit
env
accu
|
EIntConst
k
->
self
#
eintconst
env
accu
k
|
EMaxInt
->
self
#
emaxint
env
accu
|
EStringConst
s
->
self
#
estringconst
env
accu
s
|
EData
(
d
,
es
)
->
...
...
@@ -452,9 +445,6 @@ class virtual ['env, 'a] fold = object (self)
method
eintconst
(
_env
:
'
env
)
(
accu
:
'
a
)
_k
=
accu
method
emaxint
(
_env
:
'
env
)
(
accu
:
'
a
)
=
accu
method
estringconst
(
_env
:
'
env
)
(
accu
:
'
a
)
_s
=
accu
...
...
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