Phillipe wrote:
>As you probably know, the regular expression library Scintilla uses
>return short diagnostic strings when it meets a parsing error. I don't
>know yet if these strings are used somewhere.
Neither the strings, nor the error codes are returned from the
regular expressions.

>I am studying this library in the hope of bringing some small improvements.
>Note that this library is public domain and very small. You can even
>trim it down to its parser and integrate it to your application. It
>doesn't even has to store the compiled expression. This way, you can
>submit the RE to your parsing function and see what error is returned.
>The parser is easy to understand...
I have no problem with the parser (but am tempted to add ? meaning
match 0 or 1 to go with the * and +).

If it is decided that having a way to report RE errors would be useful, it
should be part of the Scintilla API, and if we are heading for plug-in RE
parsers to suit the lexers, then the RE errors should also be part of the RE
API.

Greg Smith


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to