-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rkt
32 lines (28 loc) · 1.04 KB
/
main.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#lang racket
(require "chspans.rkt")
(require "definitions.rkt")
(require "syntax-to-contract.rkt")
(require "textedit.rkt")
(define/contract (contract-infos-on-path path)
(-> path-string? (listof func-contract-info?))
(define path-str (if (string? path)
path
(path->string path)))
(contract-infos&errors-i (path-addcontract path-str)))
(define/contract (path-addcontracts-withGUI path)
(-> path-string? any)
(define path-str (if (string? path)
path
(path->string path)))
(define contract-info-error (path-addcontract path-str))
(if (empty? (contract-infos&errors-i contract-info-error))
"there is no contractable procedures"
(process-file-with-func-contractinfos (path-addcontract path-str))))
(provide contract-infos-on-path path-addcontracts-withGUI
(struct-out func-contract-info)
(struct-out character-set)
charset-size
charset-empty?
empty-charset
union-charset
subtract-charset)