Esempio n. 1
0
def TRACE():        return -1, ignore(r"(?!->|--\ Loop).*\n"), -1 , [STATE, STATELOOP]

# FIXME understand what Input 
# states are and decide what 
# to do with them.
def STATE():        return "->", ["State:","Input:"], re.compile(r"\d*\.\d*"), "<-", -1 , VARCHANGE
Esempio n. 2
0
def _cflags():
    return ignore('--cflags')
Esempio n. 3
0
def boost():
    return 'rosboost-cfg', ws, [
        ignore('--cflags'),
        (ignore('--lflags'), ws, re.compile(r'\w+'), STAR,
         (',', re.compile(r'\w+')))
    ]
Esempio n. 4
0
def ws():
    return ignore(r'\s+')
Esempio n. 5
0
def GRAMMAR():    return -1, [DEFINITION , pyPEG.ignore(r"[^\r\n]*[\r\n]")]
def COMMENT():    return [re.compile(r"//.*"), re.compile("/\*.*?\*/", re.S)]
Esempio n. 6
0
def boost():
    return 'rosboost-cfg', ws, [ignore('--cflags'), 
                                (ignore('--lflags'), ws, re.compile(r'\w+'), STAR, (',', re.compile(r'\w+')))]
Esempio n. 7
0
def _cflags():
    return ignore('--cflags')
Esempio n. 8
0
def ws():
    return ignore(r'\s+')