|Anonymous | Login | Signup for a new account||2013-06-20 04:45 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005635||OCaml||Camlp4||public||2012-06-05 20:02||2012-07-10 20:19|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0005635: Factoring Camlp4Parsers|
|Description||There are lots of Parsers in directory camlp4/Camlp4Parsers.|
It would be nice to factor out one line
"let module M = Register.OCamlSyntaxExtension Id Make in ();"
to make it more reusable.
The Grammar is already parameterized over Camlp4Ast;
but the last line makes linking with Camlp4OCamlRevisedParser.cmo will mutate Syntax. It would be nice to move the last line to another file.
Then users can get the parsers for free without polluting its syntax.
|Tags||No tags attached.|
Other factoring which makes camlp4 more usable is to parameterize Register module which depends on PreCast.
Since Camlp4 3.10+ was developed based on the idea that Lexer's parameterized, but the fact that Register.ml depends on PreCast.ml which hardcode the default Lexer.ml makes users to supply their own Lexer too much work.
I guess refactoring these modules will not take too much time, but people may need to take care of the building scripts.
|2012-06-05 20:02||hongboz||New Issue|
|2012-06-27 15:08||doligez||Assigned To||=> doligez|
|2012-06-27 15:08||doligez||Status||new => acknowledged|
|2012-07-06 15:12||doligez||Assigned To||doligez =>|
|2012-07-10 20:19||hongboz||Note Added: 0007701|
|Copyright © 2000 - 2011 MantisBT Group|