foonathan / lexy

C++ parsing DSL
https://lexy.foonathan.net
Boost Software License 1.0
1.01k stars 67 forks source link

"A!=-1" returns "operator cannot be mixed with previous operators" #204

Closed facontidavide closed 1 month ago

facontidavide commented 4 months ago

Hi,

I created here an extension of your calculator tutorial, but I am straggling with the formula "A!=-1"

https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/include/behaviortree_cpp/scripting/operators.hpp

Is there any way to address this in the DSL?

foonathan commented 4 months ago

Can you send me a minimzed example that reproduces it on the playground? https://lexy.foonathan.net/playground/