diff options
| author | Paul Buetow <paul@buetow.org> | 2008-10-18 22:47:31 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-10-18 22:47:31 +0000 |
| commit | cb1450b796eff3c8830616e2e9a3d83d4dfb4900 (patch) | |
| tree | 1ed2b992f9b082cf82913abeaff8c208ecab67dd /tmp | |
| parent | a35ace22b374005c65bda8302761d24f75280170 (diff) | |
backdowngrade
Diffstat (limited to 'tmp')
| -rw-r--r-- | tmp/test.fy | 25 | ||||
| -rw-r--r-- | tmp/test.out | 113 |
2 files changed, 2 insertions, 136 deletions
diff --git a/tmp/test.fy b/tmp/test.fy index da59a2a..afe2cec 100644 --- a/tmp/test.fy +++ b/tmp/test.fy @@ -1,26 +1,3 @@ -my foo = 1; -if 1 { - say foo; -} - -say 1 + 1; - - -#my foo = [1 2 3]; -# Prints num of elements in foo -#assert "TT_INTEGER" == type say integer foo; - -#my bar = [1 2 3]; -# Prints num of elements in bar -#assert "TT_DOUBLE" == type say double bar; - -#my baz = [1 2 3]; -# Prints num of elements in baz -#assert "TT_STRING" == type say string baz; - -# Prints "1 3 5 6\n" -#say [1 3 5 6]; - -#my foo = 2 * 3 + 1.2; +my foo = [1, 2.2, "3"]; diff --git a/tmp/test.out b/tmp/test.out index 9028487..afe2cec 100644 --- a/tmp/test.out +++ b/tmp/test.out @@ -1,114 +1,3 @@ -my foo = 1; -if 1 { - say foo; -} - -say 1 + 1; - - -#my foo = [1 2 3]; -# Prints num of elements in foo -#assert "TT_INTEGER" == type say integer foo; - -#my bar = [1 2 3]; -# Prints num of elements in bar -#assert "TT_DOUBLE" == type say double bar; - -#my baz = [1 2 3]; -# Prints num of elements in baz -#assert "TT_STRING" == type say string baz; - -# Prints "1 3 5 6\n" -#say [1 3 5 6]; - -#my foo = 2 * 3 + 1.2; -Token (org=1, id=00000, line=00002, pos=0003, type=TT_MY, val=my, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00001, line=00002, pos=0007, type=TT_IDENT, val=foo, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00002, line=00002, pos=0009, type=TT_ASSIGN, val==, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00003, line=00002, pos=0011, type=TT_INTEGER, val=1, ival=1, dval=0.000000, refs=1) -Token (org=1, id=00004, line=00002, pos=0012, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00005, line=00004, pos=0003, type=TT_IF, val=if, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00006, line=00004, pos=0005, type=TT_INTEGER, val=1, ival=1, dval=0.000000, refs=1) -Token (org=1, id=00007, line=00004, pos=0007, type=TT_PARANT_CL, val={, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00008, line=00005, pos=0005, type=TT_IDENT, val=say, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00009, line=00005, pos=0009, type=TT_IDENT, val=foo, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00010, line=00005, pos=0010, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00011, line=00006, pos=0002, type=TT_PARANT_CR, val=}, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00012, line=00008, pos=0004, type=TT_IDENT, val=say, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00013, line=00008, pos=0006, type=TT_INTEGER, val=1, ival=1, dval=0.000000, refs=1) -Token (org=1, id=00014, line=00008, pos=0008, type=TT_ADD, val=+, ival=0, dval=0.000000, refs=1) -Token (org=1, id=00015, line=00008, pos=0010, type=TT_INTEGER, val=1, ival=1, dval=0.000000, refs=1) -Token (org=1, id=00016, line=00008, pos=0011, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1) -DEBUG(Track: ./src/core/interpret.c:_program:166) -DEBUG(Token: my) -DEBUG(Track: ./src/core/interpret.c:_statement:448) -DEBUG(Token: my) -DEBUG(Track: ./src/core/interpret.c:_proc_decl:380) -DEBUG(Token: my) -DEBUG(Track: ./src/core/interpret.c:_func_decl:414) -DEBUG(Token: my) -DEBUG(Track: ./src/core/interpret.c:_var_decl:181) -DEBUG(Token: my) -DEBUG(Track: ./src/core/interpret.c:_var_assign:216) -DEBUG(Token: foo) -DEBUG(Track: ./src/core/interpret.c:_compare:640) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_sum:691) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_product:742) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_product2:780) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_term:814) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_var_list:260) -DEBUG(Token: ;) -DEBUG(Track: ./src/core/interpret.c:_statement:448) -DEBUG(Token: if) -DEBUG(Track: ./src/core/interpret.c:_proc_decl:380) -DEBUG(Token: if) -DEBUG(Track: ./src/core/interpret.c:_func_decl:414) -DEBUG(Token: if) -DEBUG(Track: ./src/core/interpret.c:_var_decl:181) -DEBUG(Token: if) -DEBUG(Track: ./src/core/interpret.c:_control:507) -DEBUG(Token: if) -DEBUG(Track: ./src/core/interpret.c:_compare:640) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_sum:691) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_product:742) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_product2:780) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_term:814) -DEBUG(Token: 1) -DEBUG(Track: ./src/core/interpret.c:_program:166) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_statement:448) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_proc_decl:380) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_func_decl:414) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_var_decl:181) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_control:507) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_expression:483) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_compare:640) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_sum:691) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_product:742) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_product2:780) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_term:814) -DEBUG(Token: say) -DEBUG(Track: ./src/core/interpret.c:_compare:640) -DEBUG(Token: foo) -DEBUG(Track: ./src/core/
\ No newline at end of file +my foo = [1, 2.2, "3"]; |
