mirror of
https://github.com/janet-lang/janet
synced 2025-06-28 08:03:00 +00:00
Update webrepl.
This commit is contained in:
parent
4e4dd31164
commit
06733cc48d
@ -1,10 +1,10 @@
|
|||||||
# Copyright 2017-2018 (C) Calvin Rose
|
# Copyright 2017-2018 (C) Calvin Rose
|
||||||
(print (string "Janet " janet.version " Copyright (C) 2017-2018 Calvin Rose"))
|
(print (string "Janet " janet/version " Copyright (C) 2017-2018 Calvin Rose"))
|
||||||
|
|
||||||
(fiber.new (fn webrepl []
|
(fiber/new (fn webrepl []
|
||||||
(repl (fn get-line [buf p]
|
(repl (fn get-line [buf p]
|
||||||
(def [line] (parser.where p))
|
(def [line] (parser/where p))
|
||||||
(def prompt (string "janet:" line ":" (parser.state p) "> "))
|
(def prompt (string "janet:" line ":" (parser/state p) "> "))
|
||||||
(repl-yield prompt buf)
|
(repl-yield prompt buf)
|
||||||
(yield)
|
(yield)
|
||||||
buf))))
|
buf))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user