You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want to redefine a grammer for float, so how can I use mpc_float() and friends with mpca_lang and permit to reference it without defining it in the grammar ?
The text was updated successfully, but these errors were encountered:
You can define it ahead of time with mpc_define , pass it in along with the other arguments to mpca_lang, and reference it using the name it was given by mpc_new.
Ah yeah, that's true - I think you can use mpc_apply(mpcf_str_ast, mpc_real()) instead since parsers used in mpca_grammar need to return a mpc_ast_t*. You can also tag that ast node with mpca_tag.
I don't want to redefine a grammer for float, so how can I use
mpc_float()
and friends withmpca_lang
and permit to reference it without defining it in the grammar ?The text was updated successfully, but these errors were encountered: