mirror of
https://github.com/janet-lang/janet
synced 2024-11-18 06:34:48 +00:00
Update webrepl.
This commit is contained in:
parent
4e4dd31164
commit
06733cc48d
@ -1,10 +1,10 @@
|
||||
# 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]
|
||||
(def [line] (parser.where p))
|
||||
(def prompt (string "janet:" line ":" (parser.state p) "> "))
|
||||
(def [line] (parser/where p))
|
||||
(def prompt (string "janet:" line ":" (parser/state p) "> "))
|
||||
(repl-yield prompt buf)
|
||||
(yield)
|
||||
buf))))
|
||||
|
Loading…
Reference in New Issue
Block a user