mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	Update webrepl.
This commit is contained in:
		| @@ -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)))) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose