Menu

#2 Little hack for Lexlib

open
nobody
None
5
2012-07-24
2007-02-14
No

Idltopas refuses #define and other declarations which doesn't start from the beginning of line.
IE:

/works/

define SOMETHING

/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.

Discussion

  • Wojciech Jeczmien

     
  • Wojciech Jeczmien

    Logged In: YES
    user_id=43916
    Originator: YES

    sorry - should be:
    /doesn't works (whitespaces at the beginning)/
    &nbsp&nbsp&nbsp #define SOMETHING

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.