예제 #1
0
def digit():
  return satisfies(lambda l: l.isdigit())
예제 #2
0
def char_range(lower, upper):
    satisfies(lambda c: lower <= ord(c) <= upper)
예제 #3
0
def identifier_char1():
  return satisfies(lambda l: l.isalpha() or l == "_")