Re: Combining tokens

2010-03-15 Thread Istvan Sandor
Hi, On Mon, Mar 15, 2010 at 10:57:11AM +0100, S?ren Andersen wrote: > Consider a language with all the normal expressions - you can add, > subtract, multiply, etc. Now, you'd like for the user to be able to > define his own operators - for instance, '+?' or something like that. > In order to hel

Re: Flex and Bison C++ Example

2010-03-08 Thread Istvan Sandor
Hi, I definitely wouldn't say this: "Edit: March 7 2010 [...] In C mode, the generated code uses global variables to store information, making them non-thread-safe. It is also a pain to create multiple different parsers / scanners and include them in the same program. Using C++ mode, all of the

Re: indentations instead of endtag in a grammar

2010-02-17 Thread Istvan Sandor
Hi, > How can i tell Bison that that it has to look for the indentations? Has > anyone maybe an example that he/she can send me ? it would be very helpful, > because i havent seen such an example. Whitespace is usually handled by the lexer, in this case you need an indication of the amount of le