foonathan / lexy

C++ parsing DSL
https://lexy.foonathan.net
Boost Software License 1.0
991 stars 66 forks source link

Add examples for parse #163

Closed EmmanuelMess closed 1 year ago

EmmanuelMess commented 1 year ago

Add examples for https://lexy.foonathan.net/reference/action/parse/#parse page of documentation. In particular I have no idea how to use lexy::parse_result.

foonathan commented 1 year ago

Is that not enough? https://github.com/foonathan/lexy/blob/5e2601b3de57e979b5d23b8936cf040eb228fb94/examples/calculator.cpp#L457-L460

EmmanuelMess commented 1 year ago

I think I hallucinated there was a parse_result function.

foonathan commented 1 year ago

It's the return type of lexy::parse.