BSD Ports

wip/carburetta v0.8.28 NetBSD

Fused scanner parser generator

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
Last update
Commit
59a6804964
License
apache-2.0
Categories
wip, devel

Description

Carburetta is an open source fused scanner parser generator for the C and C++ languages. Fused means it can generate both the scanner and the parser from the same input which simplifies parsing languages. This is beneficial for the following reasons:

* You won't have to manually ferry data and types back and forth between the scanner and the parser. * The nuances of the scanner are available to the parser. If the type of a "[0-9]+" patterned token is "int" then that is also the type the token appears as in the parser's grammar. No longer a need to shovel everything into a single "token" data type only to "unshovel" it later.

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/carburetta && make install clean

Dependencies

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
59a6804964 Michael Baeuerle carburetta: Update to 0.8.28
0.8.28 - 2026-01-11 - Will now emit #line so C/C++ compilation errors on generated code will be located at the corresponding snippet code in the .cbrt input file, where appropatiate. Use --nolinedir to disable. - Can now emit a symbol_names[] table for all ordinal constants, this can be useful when writing code that uses Carburetta's internal structures more dynamically and you wish to emit debug information. Only generated when --sym-names is specified. - Instead of specifying a filename, you can now pass - (a dash) for the filename and the grammar input will be read from stdin. 0.8.25 - 2025-04-14 - New 'visit' feature. When specifying either %visit or %visit_params directives, Carburetta will now generate a new function …