-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
979 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"qualifiedName":"aurora.testcase.factorial","name":"factorial","AST":{"variables":["fac","n"],"symbols":[],"strings":["\"【SSC编译】普通阶乘 10!=\""],"slists":[{"type":"SLIST","index":0,"children":["$1"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":1,"parentIndex":0,"children":[],"isQuoted":false,"parameters":[],"body":"$2"},{"type":"SLIST","index":2,"parentIndex":1,"children":["begin","$3","$10","$11","$13"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":3,"parentIndex":2,"children":["define","&0","$4"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":4,"parentIndex":3,"children":[],"isQuoted":false,"parameters":["&1"],"body":"$5"},{"type":"SLIST","index":5,"parentIndex":4,"children":["if","$6","#1","$7"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":6,"parentIndex":5,"children":["=","&1","#0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":7,"parentIndex":5,"children":["*","&1","$8"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":8,"parentIndex":7,"children":["&0","$9"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":9,"parentIndex":8,"children":["-","&1","#2"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":10,"parentIndex":2,"children":["display","*0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":11,"parentIndex":2,"children":["display","$12"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":12,"parentIndex":11,"children":["&0","#3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":13,"parentIndex":2,"children":["newline"],"isQuoted":false,"parameters":[],"body":null}],"constants":["0","1","1","10"],"refIndexes":{"*":1,"$":14,"!":0,"&":2,"#":4,"^":0}},"ASM":["call @$1","halt",";; [SSC] Function @ $1","@$1",";; [SSC] DEFINE","push @$4","store &0","push *0","display","push #3","call &0","display","newline","return",";; [SSC] Function @ $4","@$4","store &1",";; [SSC] IF","load &1","push #0","=","iftrue @IF-TRUE-TEMP0","load &1","load &1","push #2","-","call &0","*","goto @END-IF-TEMP1","@IF-TRUE-TEMP0","push #1","@END-IF-TEMP1","return"],"labelDict":{"@$1":3,"@$4":15,"@IF-TRUE-TEMP0":29,"@END-IF-TEMP1":31}} | ||
{"qualifiedName":"aurora.testcase.factorial","name":"factorial","AST":{"variables":["fac","n"],"symbols":[],"strings":["\"【SSC编译】普通阶乘 10!=\""],"slists":[{"type":"SLIST","index":0,"children":["$1"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":1,"parentIndex":0,"children":[],"isQuoted":false,"parameters":[],"body":"$2"},{"type":"SLIST","index":2,"parentIndex":1,"children":["begin","$3","$10","$11","$13"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":3,"parentIndex":2,"children":["define","&0","$4"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":4,"parentIndex":3,"children":[],"isQuoted":false,"parameters":["&1"],"body":"$5"},{"type":"SLIST","index":5,"parentIndex":4,"children":["if","$6","#1","$7"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":6,"parentIndex":5,"children":["=","&1","#0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":7,"parentIndex":5,"children":["*","&1","$8"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":8,"parentIndex":7,"children":["&0","$9"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":9,"parentIndex":8,"children":["-","&1","#2"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":10,"parentIndex":2,"children":["display","*0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":11,"parentIndex":2,"children":["display","$12"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":12,"parentIndex":11,"children":["&0","#3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":13,"parentIndex":2,"children":["newline"],"isQuoted":false,"parameters":[],"body":null}],"constants":["0","1","1","10"],"refIndexes":{"STRING":1,"SLIST":14,"SYMBOL":0,"VARIABLE":2,"CONSTANT":4,"CLOSURE":0}},"ASM":["call @$1","halt",";; [SSC] Function @ $1","@$1","push $2","return",";; [SSC] Function @ $4","@$4","store &1","push $5","return"],"labelDict":{"@$1":3,"@$4":7}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"qualifiedName":"aurora.testcase.generator","name":"generator","AST":{"variables":["count","generator","g","init","Kont"],"symbols":[],"strings":["\"【SSC编译】生成器:\"","\" \""],"slists":[{"type":"SLIST","index":0,"children":["$1"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":1,"parentIndex":0,"children":[],"isQuoted":false,"parameters":[],"body":"$2"},{"type":"SLIST","index":2,"parentIndex":1,"children":["begin","$3","$4","$5","$16","$17","$19","$20"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":3,"parentIndex":2,"children":["define","&0","#0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":4,"parentIndex":2,"children":["define","&1","#f"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":5,"parentIndex":2,"children":["define","&2","$6"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":6,"parentIndex":5,"children":[],"isQuoted":false,"parameters":[],"body":"$7"},{"type":"SLIST","index":7,"parentIndex":6,"children":["$8","#2"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":8,"parentIndex":7,"children":[],"isQuoted":false,"parameters":["&3"],"body":"$9"},{"type":"SLIST","index":9,"parentIndex":8,"children":["begin","$10","$13","$15","&3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":10,"parentIndex":9,"children":["call/cc","$11"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":11,"parentIndex":10,"children":[],"isQuoted":false,"parameters":["&4"],"body":"$12"},{"type":"SLIST","index":12,"parentIndex":11,"children":["set!","&1","&4"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":13,"parentIndex":9,"children":["set!","&3","$14"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":14,"parentIndex":13,"children":["+","&3","#1"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":15,"parentIndex":9,"children":["set!","&0","&3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":16,"parentIndex":2,"children":["display","*0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":17,"parentIndex":2,"children":["display","$18"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":18,"parentIndex":17,"children":["&2"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":19,"parentIndex":2,"children":["display","*1"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":20,"parentIndex":2,"children":["if","$21","$22","$23"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":21,"parentIndex":20,"children":[">=","&0","#3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":22,"parentIndex":20,"children":["newline"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":23,"parentIndex":20,"children":["display","$24"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":24,"parentIndex":23,"children":["&1","#4"],"isQuoted":false,"parameters":[],"body":null}],"constants":["0","1","0","10","666"],"refIndexes":{"*":2,"$":25,"!":0,"&":5,"#":5,"^":0}},"ASM":["call @$1","halt",";; [SSC] Function @ $1","@$1",";; [SSC] DEFINE","push #0","store &0",";; [SSC] DEFINE","push #f","store &1",";; [SSC] DEFINE","push @$6","store &2","push *0","display","call &2","display","push *1","display",";; [SSC] IF","load &0","push #3",">=","iftrue @IF-TRUE-TEMP0","push #4","call &1","display","goto @END-IF-TEMP1","@IF-TRUE-TEMP0","newline","@END-IF-TEMP1","return",";; [SSC] Function @ $6","@$6","push #2","call @$8","return",";; [SSC] Function @ $8","@$8","store &3",";; [SSC] Current Continuation captured, stored in &CC-$11-TEMP2","capturecc &CC-$11-TEMP2","load &CC-$11-TEMP2","call @$11","@&CC-$11-TEMP2",";; [SSC] SET!","load &3","push #1","+","set! &3",";; [SSC] SET!","load &3","set! &0","load &3","return",";; [SSC] Function @ $11","@$11","store &4",";; [SSC] SET!","load &4","set! &1","return"],"labelDict":{"@$1":3,"@IF-TRUE-TEMP0":28,"@END-IF-TEMP1":30,"@$6":33,"@$8":38,"@&CC-$11-TEMP2":44,"@$11":56}} | ||
{"qualifiedName":"aurora.testcase.generator","name":"generator","AST":{"variables":["count","generator","g","init","Kont"],"symbols":[],"strings":["\"【SSC编译】生成器:\"","\" \""],"slists":[{"type":"SLIST","index":0,"children":["$1"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":1,"parentIndex":0,"children":[],"isQuoted":false,"parameters":[],"body":"$2"},{"type":"SLIST","index":2,"parentIndex":1,"children":["begin","$3","$4","$5","$16","$17","$19","$20"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":3,"parentIndex":2,"children":["define","&0","#0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":4,"parentIndex":2,"children":["define","&1","#f"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":5,"parentIndex":2,"children":["define","&2","$6"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":6,"parentIndex":5,"children":[],"isQuoted":false,"parameters":[],"body":"$7"},{"type":"SLIST","index":7,"parentIndex":6,"children":["$8","#2"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":8,"parentIndex":7,"children":[],"isQuoted":false,"parameters":["&3"],"body":"$9"},{"type":"SLIST","index":9,"parentIndex":8,"children":["begin","$10","$13","$15","&3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":10,"parentIndex":9,"children":["call/cc","$11"],"isQuoted":false,"parameters":[],"body":null},{"type":"LAMBDA","index":11,"parentIndex":10,"children":[],"isQuoted":false,"parameters":["&4"],"body":"$12"},{"type":"SLIST","index":12,"parentIndex":11,"children":["set!","&1","&4"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":13,"parentIndex":9,"children":["set!","&3","$14"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":14,"parentIndex":13,"children":["+","&3","#1"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":15,"parentIndex":9,"children":["set!","&0","&3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":16,"parentIndex":2,"children":["display","*0"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":17,"parentIndex":2,"children":["display","$18"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":18,"parentIndex":17,"children":["&2"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":19,"parentIndex":2,"children":["display","*1"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":20,"parentIndex":2,"children":["if","$21","$22","$23"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":21,"parentIndex":20,"children":[">=","&0","#3"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":22,"parentIndex":20,"children":["newline"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":23,"parentIndex":20,"children":["display","$24"],"isQuoted":false,"parameters":[],"body":null},{"type":"SLIST","index":24,"parentIndex":23,"children":["&1","#4"],"isQuoted":false,"parameters":[],"body":null}],"constants":["0","1","0","10","666"],"refIndexes":{"STRING":2,"SLIST":25,"SYMBOL":0,"VARIABLE":5,"CONSTANT":5}},"ASM":["call @$1","halt",";; [SSC] Function @ $1","@$1",";; [SSC] DEFINE","push #0","store &0",";; [SSC] DEFINE","push #f","store &1",";; [SSC] DEFINE","push @$6","store &2","push *0","display","call &2","display","push *1","display",";; [SSC] IF","load &0","push #3",">=","iftrue @IF-TRUE-TEMP0","push #4","call &1","display","goto @END-IF-TEMP1","@IF-TRUE-TEMP0","newline","@END-IF-TEMP1","return",";; [SSC] Function @ $6","@$6","push #2","call @$8","return",";; [SSC] Function @ $8","@$8","store &3",";; [SSC] Current Continuation captured, stored in &CC-$11-TEMP2","capturecc &CC-$11-TEMP2","load &CC-$11-TEMP2","call @$11","@&CC-$11-TEMP2",";; [SSC] SET!","load &3","push #1","+","set! &3",";; [SSC] SET!","load &3","set! &0","load &3","return",";; [SSC] Function @ $11","@$11","store &4",";; [SSC] SET!","load &4","set! &1","return"],"labelDict":{"@$1":3,"@IF-TRUE-TEMP0":28,"@END-IF-TEMP1":30,"@$6":33,"@$8":38,"@&CC-$11-TEMP2":44,"@$11":56}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.