Skip to content
Discussion options

You must be logged in to vote

Is there a good way to know the call backs for the grammars?

/opt/compiler-explorer/libs/lexy/trunk/include/lexy/grammar.hpp:371:27: error: static assertion failed due to requirement '_detail::error<test::ExpressionValue>': missing value callback overload for production
  371 |             static_assert(_detail::error<Production, Args...>,
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This error message that test::ExpressionValue is missing a callback that accepts no values. The instantiation of _detail::error<Production, Args...> means that Production requires a callback that takes those Args.... I'll see about making that clearer.

The reason it needs to accept…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kariem2k
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants