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
When a string does not correspond to the pattern of Lexer.snake_case, there is an exception:
Fatal error: exception GObject_introspection__Lexer.Error("illegal character 'c'"
How to catch it ?
there is an issue with the skip functionnalities,
in the Loader when Binding_utils.match_on_of is used, it is checked on the C name (ByteArray) for example while every where else, it is used on the binding name that is build with the lexer.
The problem is that in Loader I can not use the lexer directly because,
the function get_binding_name raise an error with:
constant name A_CONSTANT_NAME
function name a_function_name
Should the lexer raise an error, should it return the non modified string if it does not match ?
for now, the skip list will contain both C name and Ocaml binding names.
The text was updated successfully, but these errors were encountered:
see first implementation cedlemo/OCaml-GObject-Introspection@5e1faaa
https://github.com/cedlemo/OCaml-GObject-Introspection/blob/master/lib/lexer.mll
IOChannel
->IO_channel
?When a string does not correspond to the pattern of
Lexer.snake_case
, there is an exception:How to catch it ?
there is an issue with the skip functionnalities,
in the Loader when
Binding_utils.match_on_of
is used, it is checked on the C name (ByteArray
) for example while every where else, it is used on the binding name that is build with the lexer.The problem is that in Loader I can not use the lexer directly because,
the function
get_binding_name
raise an error with:A_CONSTANT_NAME
a_function_name
Should the lexer raise an error, should it return the non modified string if it does not match ?
for now, the skip list will contain both C name and Ocaml binding names.
The text was updated successfully, but these errors were encountered: