Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing/lexer.mll: bin_literal and float_literal missing '_' syntax #7979

Closed
vicuna opened this issue Dec 27, 2002 · 2 comments
Closed

parsing/lexer.mll: bin_literal and float_literal missing '_' syntax #7979

vicuna opened this issue Dec 27, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 27, 2002

Original bug ID: 1506
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Ker Lutyn
Version: OCaml 3.06
OS: FreeBSD
Submission from: 216-239-45-4.google.com (216.239.45.4)

let bin_literal =
'0' ['b' 'B'] ['0'-'1'] ['0'-'1']*
let float_literal =
['0'-'9'] ['0'-'9' '']*
('.' ['0'-'9' '
']* )?
(['e' 'E'] ['+' '-']? ['0'-'9']+)?

These are missing the '_' syntax (float_literal is missing it in the exponent).
It would be particularly handy for bin_literal, which can be quite long in
practice.

@vicuna
Copy link
Author

vicuna commented Jan 2, 2003

Comment author: administrator

let bin_literal =
'0' ['b' 'B'] ['0'-'1'] ['0'-'1']*
let float_literal =
['0'-'9'] ['0'-'9' '']*
('.' ['0'-'9' '
']* )?
(['e' 'E'] ['+' '-']? ['0'-'9']+)?

These are missing the '_' syntax (float_literal is missing it in the
exponent). It would be particularly handy for bin_literal, which
can be quite long in practice.

Right. This omission is fixed in the working sources. Thanks for
your feedback.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 2, 2003

Comment author: administrator

Fixed 2002-10-02 by DD.

@vicuna vicuna closed this as completed Jan 2, 2003
@vicuna vicuna added the bug label Mar 19, 2019
@ocaml ocaml deleted a comment from shindere Jul 24, 2020
@ocaml ocaml deleted a comment from shindere Jul 24, 2020
@ocaml ocaml deleted a comment from shindere Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant