We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looking through the code, the show_help() says:
show_help()
-utf8 In the absence of a BOM assume UTF-8
If we have a grammar that is/use utf8 it's not detected so we need to use -utf8 to really get a utf8 parser/lexer from our grammar.
-utf8
Am I missing something here ?
The text was updated successfully, but these errors were encountered:
Also it's always opening the grammar with lexertl::citerator here
lexertl::citerator
gram_grep/main.cpp
Line 290 in e90d24e
Sorry, something went wrong.
Here is an example grammar:
%token au_accented %% start: au_accented ; %% %% [ \t\n\r] skip() [áéíóú] au_accented %%
e_utf8.txt:
é
E_utf8.txt:
É
Outputs:
./gram_grep -f au_utf8.g e_utf8.txt ./e_utf8.txt(1):é ./e_utf8.txt(1):é Matches: 2 Matching files: 1 Total files searched: 1 ... ./gram_grep -f au_utf8.g E_utf8.txt ./E_utf8.txt(1):É Matches: 1 Matching files: 1 Total files searched: 1 ... ./gram_grep -utf8 -f au_utf8.g e_utf8.txt Matches: 0 Matching files: 0 Total files searched: 1 ... ./gram_grep -utf8 -f au_utf8.g E_utf8.txt Matches: 0 Matching files: 0 Total files searched: 1
No branches or pull requests
Looking through the code, the
show_help()
says:If we have a grammar that is/use utf8 it's not detected so we need to use
-utf8
to really get a utf8 parser/lexer from our grammar.Am I missing something here ?
The text was updated successfully, but these errors were encountered: