Revision c522ea02 lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
1702 | 1702 |
rbrace = pyp.Literal("}").suppress() |
1703 | 1703 |
semi = pyp.Literal(";").suppress() |
1704 | 1704 |
# this also converts the value to an int |
1705 |
number = pyp.Word(pyp.nums).setParseAction(lambda s, l, t:(l, [int(t[0])]))
|
|
1705 |
number = pyp.Word(pyp.nums).setParseAction(lambda s, l, t: int(t[0]))
|
|
1706 | 1706 |
|
1707 | 1707 |
comment = pyp.Literal ("#") + pyp.Optional(pyp.restOfLine) |
1708 | 1708 |
defa = pyp.Literal("_is_default").suppress() |
Also available in: Unified diff