diff --git a/2d.py b/2d.py new file mode 100644 index 0000000..fa818dd --- /dev/null +++ b/2d.py @@ -0,0 +1,2 @@ +l = [[0, 1], [2, 3]] +print(l[0][0]) diff --git a/calc.py b/calc.py index 36e7b30..577c067 100644 --- a/calc.py +++ b/calc.py @@ -50,8 +50,10 @@ NEGATE_AST = 5 index = 0 +print("here") + def current (): - return tokens[index][0] + return (tokens[index])[0] def eat(token): global index