Commit Graph

519 Commits

Author SHA1 Message Date
Stephen Chang
abcee6e9db bump racket dep; fix lens dep 2017-01-26 14:56:15 -05:00
Stephen Chang
f7de6fda4c remove lens-unstable dep
- add racket 6.4 dep
2017-01-26 13:54:46 -05:00
Stephen Chang
4522ccd598 add travis script 2017-01-26 13:19:43 -05:00
Stephen Chang
ba15bbd32f delete ad-hoc "run all" test scripts; use raco test instead
- add test-include-paths to run mlish test files
2017-01-25 21:22:06 -05:00
Stephen Chang
9c0b046d54 add some test timeouts 2017-01-25 16:36:46 -05:00
Stephen Chang
9f9294dc4c reduce lens dependency to lens-common and lens-unstable 2017-01-25 14:18:13 -05:00
Stephen Chang
6618f0e038 remove dependency on typed racket and sweet-exp 2017-01-25 10:47:42 -05:00
Stephen Chang
0084146c1c rename parse-typed-syntax to syntax-parse/typecheck; closes #50 again 2017-01-24 16:56:12 -05:00
Stephen Chang
896ec53151 document relation order for current-typecheck-relation; closes #48 2017-01-24 15:57:50 -05:00
Stephen Chang
b23ee8fc3f provide syntax-parse/typed-syntax as parse-typed-syntax
- but dont remove the old name
- closes #50
2017-01-24 14:51:03 -05:00
Stephen Chang
36c24c04b9 polish docs; explain #lang turnstile/lang and \succ form
closes #51
2017-01-24 12:59:02 -05:00
Stephen Chang
f100316674 ext-stlc: multibody lets; toplvl fn defs; properly transfer props on toplvl ids 2017-01-24 12:58:58 -05:00
AlexKnauth
232127da6f transfer srclocs so that check-syntax arrows work 2017-01-13 16:56:24 -05:00
Stephen Chang
995926e735 do some optimizations in typecheck.rkt: as much as 85% speedup in benchmarks
- move 'env prop logic to infer.rkt
- eliminate some dup expands (eg type-evals)

some before/afters --------------------
macrotypes/run-all-tests:      2m11s/20s 85%
macrotypes/mlish-general:      117s/34s  71%
macrotypes/mlish-shootout/rwo: 81s/31s   62%
macrotypes/mlish-typeclasses:  179s/149s 17%
turnstile/run-all-tests:       2m31s/29s 81%
turnstile/mlish-general:       139s/46s  67%
turnstile/mlish-typeclasses:   181s/155s 14%
2016-11-18 16:55:16 -05:00
Alex Knauth
4068d655d2 Merged in georges-duperon/macrotypes/fix-dependency-typed-racket-lib (pull request #30)
Added missing dependency on typed-racket-lib
2016-10-27 01:45:02 +00:00
Georges Dupéron
27e8d3d31a Added missing dependency on typed-racket-lib 2016-10-27 01:29:27 +02:00
Stephen Chang
ba1c954b96 start Bens "trivial" example 2016-10-18 17:08:25 -04:00
Stephen Chang
28fa5dd033 split def-kinded-stx from def-typed-stx; split any-type? from type?
- the former prevents using current-typecheck-relation at type/kind level
- the latter differentiates "well-formed" types (star)
  from valid types (any kind)
- move define-*ed-syntax and *-eval into define-syntax-category
- turnstile must wrap define-stx-category to define new define-*ed-syntax
- add any-*? pred and any-* stx class in def-stx-category
- fixes #44
- fixes #45
2016-10-14 14:16:49 -04:00
Stephen Chang
34b149e248 rearrange test script to avoid parameter conflicts 2016-10-13 21:46:31 -04:00
Stephen Chang
98568ceb99 add define-internal-type-constructor and define-internal-binding-type
- add fomega-no-reuse example
2016-10-13 21:21:05 -04:00
Stephen Chang
1c0fa751d6 split out a define-binding-type from define-type-constructor
- document #:arg-variances and variances; #:arr
- fixes #36
- start to split type constructor macro into (not working yet)
  - ty-: expands to expanded type representation
  - ty: performs kindchecking and expands to ty-
  - this makes it easier for programmers to implement their own kind
    system, but still get some turnstile conveniences like pat expanders
2016-10-13 15:20:30 -04:00
Stephen Chang
8a7d487e14 check if valid type when instantiating a type alias; fixed #5 2016-10-12 16:13:45 -04:00
Stephen Chang
c9c0970307 define-typed-syntax: properly handle implicit : with subsequent ⇒-props
- fixes #33
2016-10-12 15:17:31 -04:00
Stephen Chang
40a699cc81 [docs] minor edits to clarify binding phases 2016-10-12 14:52:10 -04:00
Stephen Chang
7677a7accb mlish: use define-typerule in define-type output, to match paper 2016-10-12 14:24:43 -04:00
Stephen Chang
a3433b9193 remove * version of pattern expanders 2016-10-12 14:10:03 -04:00
Stephen Chang
299051e902 add provides to guide examples 2016-10-12 13:20:38 -04:00
Stephen Chang
691ba9c51c Turnstile forms no longer automatically provide; add type-out
- not auto-providing more closely adheres to idiomatic Racket
- this commit changes:
  - define-typed-syntax
    - removed #:export-as option
  - define-base-type
    - removed #:no-provide option
  - define-type-constructor
    - removed #:no-provide option
- type-out helps with providing defined types
- in examples, move define and define-type-alias to ext-stlc
- fix bug in reuse where renamed id not provided
2016-10-12 10:46:05 -04:00
Stephen Chang
639a34c678 hide some test scripts from raco test
- these files should be manually run
- this hopefully prevents timeouts on the pkg server
2016-10-11 10:28:08 -04:00
Stephen Chang
fc5731de00 dont auto provide define-primops; add typed-out 2016-10-09 18:12:12 -04:00
Stephen Chang
8cce856e08 dont compile tests during install 2016-10-07 10:20:08 -04:00
Stephen Chang
83c9e7c122 remove todos in okasaki 2016-10-06 14:26:09 -04:00
Stephen Chang
cb36097f8d mlish define-type to more closely resemble paper 2016-10-05 10:33:18 -04:00
Stephen Chang
3ec2dfa431 drop [⊢ [e-stx]] ⇐-conclusion since it causes ambiguity and is undocumented 2016-10-05 10:32:53 -04:00
Stephen Chang
5296774b9a modify mlish app, lam and define to more closely resemble paper 2016-10-05 09:44:03 -04:00
Stephen Chang
0e0d4ce192 [docs] extend explanation of current-type-eval 2016-10-04 14:46:34 -04:00
Stephen Chang
7c68789628 convert mlish+adhoc define-instance to turnstile 2016-10-04 14:18:38 -04:00
Stephen Chang
80d0cec122 port rest of mlish+adhoc to turnstile 2016-10-04 13:44:22 -04:00
Stephen Chang
7113debd3c use more turnstile features in mlish+adhoc: define-type and match2 2016-10-03 18:41:43 -04:00
Stephen Chang
0d3b9b6550 [docs] add #:error conclusion 2016-10-03 16:01:36 -04:00
Stephen Chang
140843cf06 start move of mlish+adhoc to turnstile -- tests passing 2016-10-03 15:52:29 -04:00
Stephen Chang
b6a8d6bc95 add test-omit-paths 2016-10-03 15:45:46 -04:00
Stephen Chang
362b0f310d manually merge mlish.rkt from adhoc branch to mlish+adhoc.rkt 2016-10-03 14:28:15 -04:00
Stephen Chang
e8faad889b add τ= in addition to τ⊑ 2016-10-03 10:16:42 -04:00
AlexKnauth
41491136b6 put the guide and reference onto separate pages 2016-09-30 14:44:41 -04:00
AlexKnauth
0275d0143d use tc instead of inf and use . tc in the stx class 2016-09-30 14:07:07 -04:00
Stephen Chang
da21e04a60 delete some temporary examples 2016-09-30 12:53:36 -04:00
Stephen Chang
c78c085e60 [docs] dont include stx for-label 2016-09-30 12:53:21 -04:00
Stephen Chang
590c51bbac remove rosette dep; dont build rosette files 2016-09-30 12:51:38 -04:00
Stephen Chang
383634e14f polish and extend reference
- mention key in inf-elem
- specify phase of bindings
- add type=? examples
2016-09-30 12:09:37 -04:00