Displaying 3 results from an estimated 3 matches for "spirit2".
Did you mean:
spirit
2008 Sep 14
0
[LLVMdev] [SPIRIT2] Grammar creation
I have two questions, but the second may not be necessary depending on
the answer to this first one; in Spirit2, when creating grammars that
include other grammars (that include others and so on and so forth),
is it better to construct them in the grammar itself (like any other
rule), or is it better to have, say, a singleton of it somewhere and
link that in, and if a singleton then would it be thread-safe?
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
...r small RegExes but it wouldn't do so well for more elaborate and long expressions.
If what you need is something for a short regex, a packrat algorithm will do fine. A 256-character string may bloat up to a couple of KB and still be reasonably cheap. If you're looking for a full parser, Spirit2.x might be better.
--Sam
2009 Aug 24
8
[LLVMdev] Regular Expression lib support
On Aug 23, 2009, at 9:01 PM, Daniel Berlin wrote:
>> 2. Use POSIX regcomp facilities. This implies importing some
>> implementation of this interface, e.g., Windows. On Linux, BSD, etc.
>> we would try to use the platform version if available (and non-
>> buggy).
>
> Don't do it.
> They are ridiculous slow, and posix made some really dumb choices in
>