int plus propre
This commit is contained in:
parent
9444102aea
commit
862a4b7835
1 changed files with 6 additions and 5 deletions
|
@ -69,11 +69,12 @@ let constr_id = ['A'-'Z']['A'-'Z' 'a'-'z' '0'-'9' '_']*
|
||||||
(* Identificateur de variables de type *)
|
(* Identificateur de variables de type *)
|
||||||
let type_variable = '`' ident
|
let type_variable = '`' ident
|
||||||
(* Littéraux entiers *)
|
(* Littéraux entiers *)
|
||||||
(*let int = '-'? (digit+ | hexa | bina | octa)*)
|
|
||||||
let int = '-'? ['0'-'9']+
|
let int ='-'? digit+
|
||||||
| "0x" ['0'-'9' 'a'-'f' 'A'-'F']+
|
| hexa
|
||||||
| "0b" ['0'-'1']+
|
| bina
|
||||||
| "0o" ['0'-'7']+
|
| octa
|
||||||
|
|
||||||
(* Littéraux caractères *)
|
(* Littéraux caractères *)
|
||||||
let letter = (digit | ['A'-'Z'] | ['a'-'z'])
|
let letter = (digit | ['A'-'Z'] | ['a'-'z'])
|
||||||
|
|
||||||
|
|
Reference in a new issue