Skip to content

Commit 904fb92

Browse files
cut 0.8.28 version ..
.. also small commandline help inaccuracy (missing consts).
1 parent 855a700 commit 904fb92

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGES.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
0.8.28 - 2026-01-11
2+
3+
- Will now emit #line so C/C++ compilation errors on generated code
4+
will be located at the corresponding snippet code in the .cbrt input
5+
file, where appropatiate. Use --nolinedir to disable.
6+
7+
- Can now emit a symbol_names[] table for all ordinal constants, this
8+
can be useful when writing code that uses Carburetta's internal
9+
structures more dynamically and you wish to emit debug information.
10+
Only generated when --sym-names is specified.
11+
12+
- Instead of specifying a filename, you can now pass - (a dash) for
13+
the filename and the grammar input will be read from stdin.
14+
115
0.8.25 - 2025-04-14
216

317
- New 'visit' feature. When specifying either %visit or %visit_params

src/carburetta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ struct cli_args {
206206
{ 'h', "h", "[<h_filename>]", "Generate a C header file and output it to h_filename. If no filename is present, a c_filename must be present as it will then be used to derive a filename for the header file.", 1},
207207
{ '8', "x-utf8", NULL, "Generate a parser that reads input as UTF-8 (default)", 0},
208208
{ 'r', "x-raw", NULL, "Generate a parser that reads input as raw (latin-1) bytes", 0},
209-
{ 'n', "sym-names", NULL, "Generate a \"const char *<prefix>symbol_names_[]\" table through which the name of a symbol can be retrieved for debug purposes. The length of the table is stored in \"int <prefix>symbol_names_length_\". Entries which are invalid symbol ordinals will contain NULL.", 0},
209+
{ 'n', "sym-names", NULL, "Generate a \"const char * const <prefix>symbol_names_[]\" table through which the name of a symbol can be retrieved for debug purposes. The length of the table is stored in \"const int <prefix>symbol_names_length_\". Entries which are invalid symbol ordinals will contain NULL.", 0},
210210
{ 'L', "nolinedir", NULL, "Disables emitting #line directives for code snippets in the generated output. If not specified, the default behavior is to emit #line directives.", 0}
211211
};
212212

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern "C" {
2222

2323
#define CARBURETTA_MAJOR_VER 0
2424
#define CARBURETTA_MINOR_VER 8
25-
#define CARBURETTA_PATCH_VER 27
25+
#define CARBURETTA_PATCH_VER 28
2626

2727
#define CARBURETTA_STRINGIFY_i(x) #x
2828
#define CARBURETTA_STRINGIFY(x) CARBURETTA_STRINGIFY_i(x)

0 commit comments

Comments
 (0)