def _lift_semaphore(location, id): return Semaphore(id, location)
def p_semaphore_statement(t): '''semaphore_statement : has semaphore ID SEMI''' t[0] = Semaphore(t[3], filename=t.lexer.filename, lineno=t.lexer.lineno)