[antlr-interest] c++ Unicode
Peggy Fieland
madcapmaggie at yahoo.com
Sun Apr 23 10:50:25 PDT 2006
Yes, if you have something like:
GE: ">="
you'll have to change it to:
GE: 'G''E'
There may be another way, but that one worked for me.
--- pepone pepone <pepone.onrez at gmail.com> wrote:
> I trying to add Unicode suport to my lexer based on
> example/cpp/unicode,
>
> when add the unicode char vocabulary
> charVocabulary='\u0000'..'\uFFFE';
>
>
> When try to compile the Lexer i get the next error:
>
>
> WikiLexer.cpp: In member function `void
> WikiLexer::mDOCUMENT(bool)':
> WikiLexer.cpp:192: error: invalid conversion from
> `const wchar_t*' to `unsigned
> int'
> WikiLexer.cpp:192: error: initializing argument 1
> of `
> antlr::BitSet::BitSet(unsigned int)'
> WikiLexer.cpp: In member function `void
> WikiLexer::mSECTION_1_TAG(bool)':
> WikiLexer.cpp:206: error: invalid conversion from
> `const wchar_t*' to `unsigned
>
>
> Any ideas
> Thanks
> --
> play tetris http://pepone.on-rez.com/tetris
> run gentoo http://gentoo-notes.blogspot.com/
>
More information about the antlr-interest
mailing list