Beispiel #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
Beispiel #2
0
def _cflags():
    return ignore('--cflags')
Beispiel #3
0
def boost():
    return 'rosboost-cfg', ws, [
        ignore('--cflags'),
        (ignore('--lflags'), ws, re.compile(r'\w+'), STAR,
         (',', re.compile(r'\w+')))
    ]
Beispiel #4
0
def ws():
    return ignore(r'\s+')
Beispiel #5
0
def GRAMMAR():    return -1, [DEFINITION , pyPEG.ignore(r"[^\r\n]*[\r\n]")]
def COMMENT():    return [re.compile(r"//.*"), re.compile("/\*.*?\*/", re.S)]
def boost():
    return 'rosboost-cfg', ws, [ignore('--cflags'), 
                                (ignore('--lflags'), ws, re.compile(r'\w+'), STAR, (',', re.compile(r'\w+')))]
def _cflags():
    return ignore('--cflags')
def ws():
    return ignore(r'\s+')