lexy
lexy copied to clipboard
C++ parsing DSL
I am new to the library so I apologize if I am missing something. Exploring the examples I can't find anything similar to `dsl::integer` for real numbers. O course I...
I am having trouble finding where compilation errors are happening using this library. I usually end up adding small components (single elements of a production) of the formal language one...
It would be useful to have a partially written block of text parsed as much as possible and provide information that can be used for autocomplete purposes. For my specific...
The documentation of `lexy::dsl::nullopt` says: > ### Values > A single object of the tag type lexy::nullopt. This type is implicitly convertible to any type that is optional-like by constructing...
This is very minor issue with the API. For constants I use `constexpr` over `#define` wherever possible. I want to have the set of keywords used by my grammar defined...
`lexyd::_detect_scan_state` seems to force a presumption that you will either want a parse state or parsed values, with the only exception being if all the branch values are defaulted, since...
Lexy already offers `lexy::dsl::position` to obtain the current input position. It would be nice to also have a rule to obtain where a rule starts and *ends*. ``` namespace lexy::dsl...
gcc 13 gives the following: ``` ../lexy/lexy/dsl/punctuator.hpp:15:26: error: unnecessary parentheses in declaration of ‘period’ [-Werror=parentheses] 15 | inline constexpr auto(Name) = _##Name {} | ^~~~~~ ../lexy/lexy/dsl/punctuator.hpp:17:1: note: in expansion of...