Comments (3)
Comment author: administrator
le source suivant est accepte par ocamlyacc, malgre le `|' manquant en
debut de ligne 19.
Du coup, les # line-nb renvoient n'importe ou dans le fichier .mly
[...]
expr:
INT { Int($1) }
VAR { Var($1) }
| LPAREN expr RPAREN { $2 }
J'ai pas vu le probleme avec les # line-nb, mais j'ai fixe ocamlyacc pour qu'il
donne une erreur de syntaxe (sur "VAR" a la ligne 19) dans ce cas.
-- Damien
from ocaml.
Comment author: administrator
On Fri, 3 Mar 2000, Damien Doligez wrote:
le source suivant est accepte par ocamlyacc, malgre le `|' manquant en
debut de ligne 19.
Du coup, les # line-nb renvoient n'importe ou dans le fichier .mly
[...]
expr:
INT { Int($1) }
VAR { Var($1) }
| LPAREN expr RPAREN { $2 }J'ai pas vu le probleme avec les # line-nb, mais j'ai fixe ocamlyacc pour qu'il
donne une erreur de syntaxe (sur "VAR" a la ligne 19) dans ce cas.-- Damien
Il n'y a pas de probleme a proprement parler avec les # line-nb ;
simplement, quand on a une erreur dans le code autogenere de parser.ml ---
ce qui ne devrait jamais se produire, mais qui arrivait ici ---, le
message d'erreur d'ocamlc renvoie n'importe ou dans parser.mly au lieu de
renvoyer a la ligne fautive de parser.ml, du fait des # line-nb
from ocaml.
Comment author: administrator
Fixed in 3.00
from ocaml.
Related Issues (20)
- Since tag for a module not showing in the online API, if coming from Stdlib HOT 1
- Clarify how to reassign the pointer of a custom block HOT 6
- Support alert for class methods
- add more modules to `StdLabels` / `MoreLabels` HOT 4
- Tail call optimisation not explicitely guaranteed by the manual HOT 1
- A minor oversight in pretty-printing raw identifiers (for new types in Pexp_function) HOT 4
- `value_kind` classification for `function` cases only looks at first case HOT 2
- Ground coercion is not composable HOT 1
- Regression with default GC settings between `4.14.2` and `5.1.1` HOT 7
- Doc typo in `Printexc` HOT 2
- Abnormal exit after upgrading to OCaml 5 HOT 4
- Restore native armv7 support for NetBSD 10.0 HOT 6
- Missing warning when an attribute is ignored or makes no sense HOT 8
- Support parameter constraints in module signature type equalities HOT 3
- Update the effect handlers manual page to use syntax HOT 3
- Simplify effect handler closure and reperform by dropping the `last_fiber` argument
- Module type substitutions in signature of recursive modules are not checked for cyclicity
- Sub-module identities inside an applicative functor are actually generative, leading to invalid signatures
- Strange error message with trunk HOT 5
- "β t is less general than ∀α. α t" with trunk HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml.