lexy icon indicating copy to clipboard operation
lexy copied to clipboard

C++ parsing DSL

Results 13 lexy issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

enhancement

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...

enhancement
help wanted

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...

enhancement

`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...

bug