Commit Graph

27 Commits (ce62593840fe58afd223ba2513413a059147a073)

Author SHA1 Message Date
Daniel Kolesa ce62593840 move idents/identmap into internal state 2016-09-12 20:04:59 +02:00
Daniel Kolesa 931f7294de repl cleanup 2016-09-11 23:33:02 +02:00
Daniel Kolesa 083f905913 explicitly pass CsState to all callbacks (might be a different thread eventually) 2016-09-11 23:13:39 +02:00
Daniel Kolesa 4f0d6eda87 move the pcall func 2016-09-10 20:47:56 +02:00
Daniel Kolesa 3d39cf73e0 formatting 2016-09-10 20:45:51 +02:00
Daniel Kolesa 9f34c72b21 better repl output 2016-09-10 20:45:04 +02:00
Daniel Kolesa dc5294bac3 re-done pcall without blocks 2016-09-10 20:44:06 +02:00
Daniel Kolesa aabfe0f396 error reporting improvements 2016-09-10 16:22:27 +02:00
Daniel Kolesa 87ed89ece8 catch missing bracket errors and ask for more input 2016-09-10 15:13:07 +02:00
Daniel Kolesa 32c53a31a0 pass callstack state with errors 2016-09-09 19:19:50 +02:00
Daniel Kolesa 9b292188c8 simple interface to error/pcall on cubescript side 2016-09-09 01:18:06 +02:00
Daniel Kolesa bb72c27d2d simple error handling mechanism (will be used extensively later once it improves) 2016-09-09 00:42:53 +02:00
Daniel Kolesa cdb5a5f6f8 source tree reorg 2016-09-07 22:57:28 +02:00
Daniel Kolesa 522be08eb0 more feature complete REPL 2016-09-07 22:46:22 +02:00
Daniel Kolesa 2440d2bb9a style update 2016-09-07 19:42:12 +02:00
Daniel Kolesa aa367f4a0c cleanups and add alloc method that will be used to request memory 2016-09-07 18:58:56 +02:00
Daniel Kolesa df5e2bb507 CsValue is null by default 2016-09-07 00:01:27 +02:00
Daniel Kolesa 3a5b8492b5 complete CsValue copy/move semantics 2016-09-06 23:39:09 +02:00
Daniel Kolesa f4e9cbf27f use AlignedUnion and fix leaks 2016-09-06 20:06:49 +02:00
Daniel Kolesa fb8a793d66 allow SIGINT to interrupt infinite loops 2016-09-05 21:50:24 +02:00
Daniel Kolesa 6c0b6da94d overridable print_var stuff and overridable out/err streams 2016-09-02 19:22:19 +01:00
Daniel Kolesa 8f1be31ba2 remove io library (not general enough) 2016-09-02 18:59:04 +01:00
Daniel Kolesa 1b12781473 rename add_command to new_command 2016-09-02 18:03:01 +01:00
Daniel Kolesa d36d24808c many cleanups and api updates 2016-09-02 18:01:25 +01:00
Daniel Kolesa 6aca518614 re-expose command and add hints/completion for now at least with linenoise 2016-09-02 17:20:53 +01:00
Daniel Kolesa 0ff65e5ed4 no need to include ctype.h 2016-09-01 17:52:43 +01:00
Daniel Kolesa 9672a1091e add support for several line editing approaches (pure stdin, linenoise, libedit, readline) 2016-09-01 17:50:02 +01:00