File tree 6 files changed +53
-25
lines changed
6 files changed +53
-25
lines changed Original file line number Diff line number Diff line change 8
8
; (set vim.g.conjure#client#scheme#stdio#prompt_pattern "\n-#;%d-> ")
9
9
; (set vim.g.conjure#mapping#enable_defaults false)
10
10
11
+ ; (set vim.g.conjure#filetype#scheme "conjure.client.guile.socket")
12
+ ; (set vim.g.conjure#client#guile#socket#pipename "guile-repl.socket")
13
+
11
14
; (set vim.g.conjure#client#python#stdio#command "ipython --classic")
12
15
13
16
Original file line number Diff line number Diff line change 5
5
6
6
(+ 5 6 )
7
7
(add 1 2 )
8
+
9
+ (define (print-hi-and-return x )
10
+ (begin
11
+ (display " Hi" )
12
+ (newline))
13
+ x)
14
+
15
+ (print-hi-and-return 123 )
16
+
17
+ (define (return-values )
18
+ (values 123 " Hi" ))
19
+
20
+ (return-values)
Original file line number Diff line number Diff line change 115
115
116
116
(defn - parse - guile - result [s ]
117
117
(let [prompt (s:find "scheme@%([%w%-%s]+%)> " )]
118
- (if prompt
119
- ( let [( ind1 ind2 result ) ( s:find "%$%d+ = ([^ \n ]+) \n " )]
120
- ( if result
121
- { :done? true
122
- :error? false
123
- :result result }
124
- { :done? true
125
- :error? false
126
- :result ( s:sub 1 ( - prompt 1 ))}) )
127
- ( if ( s:find "scheme@%([%w%-%s]+%) %[%d+%]>" )
118
+ (if
119
+ prompt
120
+ ( let [( ind1 _ result ) ( s:find "%$%d+ = ([^ \n ]+) \n " )
121
+ stray - output ( s:sub
122
+ 1
123
+ ( - ( if result ind1 prompt ) 1 ))]
124
+ ( when ( > ( length stray - output ) 0 )
125
+ ( log.append
126
+ ( -> ( text.trim - last - newline stray - output )
127
+ ( text.prefixed - lines "; (out) " ))) )
128
128
{:done? true
129
- :error? true
130
- :result nil }
131
- {:done? false
132
129
:error? false
133
- :result s }))))
130
+ :result result })
131
+
132
+ (s:find "scheme@%([%w%-%s]+%) %[%d+%]>" )
133
+ {:done? true
134
+ :error? true
135
+ :result nil }
136
+
137
+ {:done? false
138
+ :error? false
139
+ :result s })))
134
140
135
141
(defn connect [opts ]
136
142
(disconnect )
Original file line number Diff line number Diff line change 1
1
[ ;; Generated by: make sponsors
2
- "AbhinavOmprakash"
3
2
"Akeboshiwind"
4
3
"aleksandersumowski"
5
4
"AlexChalk"
You can’t perform that action at this time.
0 commit comments