skvadrik / re2c

Lexer generator for C, C++, D, Go, Haskell, Java, JS, OCaml, Python, Rust, V and Zig.
https://re2c.org
Other
1.11k stars 174 forks source link

*.ypp: use api.prefix in all bison-generated parsers #501

Closed trofi closed 2 weeks ago

trofi commented 2 weeks ago

Mostly a cospetic change. I hope to get to the state when re2c can be built with -flto -Werror=odr. Right now it fails as:

src/parse/parser.cc:121:6: error: type 'yysymbol_kind_t' violates the C++ One Definition Rule [-Werror=odr]

This change does not fix it, but at least it clearly solits the exposed API namespace.

https://www.gnu.org/software/bison/manual/html_node/Multiple-Parsers.html