Little hack for Lexlib
Status: Beta
Brought to you by:
olegsafonov
Idltopas refuses #define and other declarations which doesn't start from the beginning of line.
IE:
/works/
/doesn't works (whitespaces at the beginning)/
#define SOMETHING
Here is little hack for get_char procedure. I've tried to modify cpp.l, but without success - tply4l lexer ignores my regexp template:
^[ \t]*"#define"
I'm not too familiar with lex so maybe someone will find better solution.
Anonymous
Logged In: YES
user_id=43916
Originator: YES
sorry - should be:
/doesn't works (whitespaces at the beginning)/
    #define SOMETHING