Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005635OCamlCamlp4public2012-06-05 20:022013-07-07 16:33
Reporterhongboz 
Assigned Tohongboz 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusresolvedResolutionsuspended 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005635: Factoring Camlp4Parsers
DescriptionThere 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.


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007701)
hongboz (developer)
2012-07-10 20:19

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.
(0009715)
hongboz (developer)
2013-07-07 16:32

It requires to coordinate with ocamlfind (camlp4.META), otherwise it would break most existing libraries, so I put the status as suspend.

- Issue History
Date Modified Username Field Change
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
2013-07-01 02:38 hongboz Assigned To => hongboz
2013-07-01 02:38 hongboz Status acknowledged => assigned
2013-07-07 16:32 hongboz Note Added: 0009715
2013-07-07 16:33 hongboz Status assigned => resolved
2013-07-07 16:33 hongboz Resolution open => suspended


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker