1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 06:34:48 +00:00

Update webrepl.

This commit is contained in:
Calvin Rose 2018-11-30 22:54:17 -05:00
parent 4e4dd31164
commit 06733cc48d

View File

@ -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))))