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
def _cflags(): return ignore('--cflags')
def boost(): return 'rosboost-cfg', ws, [ ignore('--cflags'), (ignore('--lflags'), ws, re.compile(r'\w+'), STAR, (',', re.compile(r'\w+'))) ]
def ws(): return ignore(r'\s+')
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+')))]