You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 2413 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
le lexer de camlp4 refuse les entiers longs (int32, int64, nativeint)
en notation hexa, octale ou binaire alors que celui d'ocaml les
accepte. Ci-joint un patch corrigeant ça.
$ ledit ocaml
Objective Caml version 3.07+2
0x0l ;;
: int32 = 0l
#load "camlp4o.cma" ;;
Camlp4 Parsing version 3.07+2
0x0l ;;
This expression is not a function, it cannot be applied
--
Olivier
--- plexer.ml.1.17. 2003-11-24 22:37:48.000000000 +0100
+++ plexer.ml 2004-04-05 17:28:59.000000000 +0200
@@ -88,6 +88,9 @@
parser
[ [: d = kind; s :] -> digits_under kind (store len d) s
| [: `'_'; s :] -> digits_under kind len s
| [: `'l' :] -> ("INT32", get_buff len)
| [: `'L' :] -> ("INT64", get_buff len)
| [: 'n' :] -> ("NATIVEINT", get_buff len) | [: :] -> ("INT", get_buff len) ] and octal = parser [ [: ('0'..'7' as d) :] -> d ]
and hexa = parser [ [: `('0'..'9' | 'a'..'f' | 'A'..'F' as d) :] -> d ]
The text was updated successfully, but these errors were encountered:
le lexer de camlp4 refuse les entiers longs (int32, int64, nativeint)
en notation hexa, octale ou binaire alors que celui d'ocaml les
accepte. Ci-joint un patch corrigeant ça.
Merci pour le rapport de bug et pour le patch, que j'ai integre dans
la version de travail.
Original bug ID: 2413
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
le lexer de camlp4 refuse les entiers longs (int32, int64, nativeint)
en notation hexa, octale ou binaire alors que celui d'ocaml les
accepte. Ci-joint un patch corrigeant ça.
$ ledit ocaml
Objective Caml version 3.07+2
0x0l ;;
#load "camlp4o.cma" ;;
0x0l ;;
This expression is not a function, it cannot be applied
--
Olivier
--- plexer.ml.
1.17.2003-11-24 22:37:48.000000000 +0100+++ plexer.ml 2004-04-05 17:28:59.000000000 +0200
@@ -88,6 +88,9 @@
parser
[ [: d = kind; s :] -> digits_under kind (store len d) s
| [: `'_'; s :] -> digits_under kind len s
'n' :] -> ("NATIVEINT", get_buff len) | [: :] -> ("INT", get_buff len) ] and octal = parser [ [:
('0'..'7' as d) :] -> d ]and hexa = parser [ [: `('0'..'9' | 'a'..'f' | 'A'..'F' as d) :] -> d ]
The text was updated successfully, but these errors were encountered: