-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activate test25b, which is passing. Add more test25 tests.
- Loading branch information
Showing
7 changed files
with
81 additions
and
37 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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#lang gibbon | ||
|
||
(require "../../ASTBenchmarks/grammar_racket.sexp") | ||
|
||
;; This can be run on any file from disk: | ||
(define (foo [e : Toplvl]) : Int | ||
(case e | ||
;; In a DIFFERENT order from the datadef: | ||
[(Expression x) 104] | ||
[(DefineValues listSym expr) 101] | ||
[(DefineSyntaxes listSym expr) 102] | ||
[(BeginTop listToplvl) 103] | ||
)) | ||
;[Expression Expr] | ||
|
||
(foo (Expression (VARREF (quote hi)))) |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#lang gibbon | ||
|
||
(require "../../ASTBenchmarks/grammar_racket.sexp") | ||
|
||
;; Non-exhaustive pattern match | ||
(define (foo [e : Toplvl]) : Int | ||
(case e | ||
[(Expression x) | ||
(case x | ||
[(VARREF s) 1] | ||
[(Top s) 2] | ||
[(VariableReference s) 3] | ||
[(VariableReferenceTop s) 4] | ||
[(VariableReferenceNull) 5] | ||
[(Quote d) 6] | ||
[(QuoteSyntax d) 7] | ||
[(QuoteSyntaxLocal d) 8] | ||
[(Lambda formals lse) 9] | ||
[(CaseLambda cases) 10] | ||
[(LetValues binds body) 11] | ||
[(LetrecValues binds body) 12] | ||
[(If cond then else) 13] | ||
[(Begin exprs) 14] | ||
[(Begin0 e1 exprs) 15] | ||
[(App rator rands) 16] | ||
[(SetBang s e) 17] | ||
[(WithContinuationMark e1 e2 e3) 18])])) | ||
;; TODO: Need to fill these out with error cases. | ||
|
||
; (foo (Expression (VARREF (quote hi)))) |
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
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
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