Neaten up example so it can be cut and pasted.
This commit is contained in:
commit
2584b2f9f3
|
@ -1339,8 +1339,8 @@ successive matches::
|
|||
tax := price * 0.05;
|
||||
'''
|
||||
>>> for token in tokenize(statements):
|
||||
... print(token)
|
||||
...
|
||||
print(token)
|
||||
|
||||
Token(typ='ID', value='total', line=1, column=8)
|
||||
Token(typ='ASSIGN', value=':=', line=1, column=14)
|
||||
Token(typ='ID', value='total', line=1, column=17)
|
||||
|
|
Loading…
Reference in New Issue