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

Camlp4_et_opérateurs_en_? #3484

Closed
vicuna opened this issue Jul 30, 2002 · 2 comments
Closed

Camlp4_et_opérateurs_en_? #3484

vicuna opened this issue Jul 30, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 30, 2002

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

Bug description

Hello,

Un petit problème avec Camlp4: il ne reconnait pas les opérateurs préfixes
qui commencent par ?, contrairement au lexer/parser d'OCaml.

#load "camlp4o.cma";;

    Camlp4 Parsing version 3.05

let (??) x = x+1;;

val ( ?? ) : int -> int =

?? 3;;

Toplevel input:

?? 3;;

^^
Parse error: illegal begin of top_phrase

-- Alain

@vicuna
Copy link
Author

vicuna commented Jul 31, 2002

Comment author: administrator

Un petit problème avec Camlp4: il ne reconnait pas les opérateurs préfixes
qui commencent par ?, contrairement au lexer/parser d'OCaml.

Pas tout à fait: "???" marche très bien, par exemple :-) En fait,
"??" est utilisé comme mot-clé dans la syntaxe des stream parsers, et
n'est donc pas autorisé comme opérateur par le parser de Camlp4.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jul 31, 2002

Comment author: administrator

Camlp4o reserves "??" as a keyword for stream parsers.

@vicuna vicuna closed this as completed Jul 31, 2002
@vicuna vicuna added the bug label Mar 19, 2019
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