View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014954CMakeCMakepublic2014-06-04 15:572016-06-10 14:31
ReporterGeorg Sauthoff 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014954: feature request: add FindRAGEL parser generator module
DescriptionCMake already comes with support for parser-generators/compiler-compilers like Flex and Bison (i.e. FindFLEX/FindBison).

But currently, it does not support the Ragel state machine compiler/parser-generator (http://www.complang.org/ragel/ [^] ).

A google search shows that there is a need for such support - there are various projects using Ragel - and some projects which build with cmake reinvent the wheel, i.e. they ship custom cmake targets for ragel compilation.

I've created a FindRAGEL module for my needs - it is based on the FindBISON module distributed with cmake:

https://github.com/gsauthof/cmake-ragel [^]

Besides the small examples included in the above repository you can also see how the FindRAGEL module is used in another project - for multiple ragel files:

https://github.com/gsauthof/imapdl [^]

Please feel free to integrate the FindRAGEL module (or something to the same effect) into the cmake distribution.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036117)
Brad King (manager)
2014-06-04 16:07

Thanks for offering this module.

Please read CONTRIBUTING.rst at the top of the source tree:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=CONTRIBUTING.rst;hb=v3.0.0-rc6 [^]

It explains the preferred entry path is to send patches to the mailing list.

Please also read the cmake-packages(7) manual:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html [^]

and the cmake-developer(7) manual section on writing modules:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#modules [^]

A few quick comments from glancing at the module:

- The documentation comment will need to be converted to the reStructuredText-based documentation system used in CMake 3.0 and above.
- Generally I prefer not to maintain APIs in find modules. The bison_target macro is a legacy API. Projects could call add_custom_command themselves. We can always add an API later if necessary but we can never remove one easily.

Please resolve these for the version to be posted to the list or ask on the list if you need help. Thanks!
(0042557)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-06-04 15:57 Georg Sauthoff New Issue
2014-06-04 16:07 Brad King Note Added: 0036117
2016-06-10 14:29 Kitware Robot Note Added: 0042557
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team