Commit Graph

1591 Commits

Author SHA1 Message Date
Cheer Xiao
5f41e104dc Evalling error and compiling error are now called "error" and "static error" 2015-07-07 22:26:17 +02:00
Cheer Xiao
4c53900be9 Remove unused struct 2015-07-06 20:02:41 +02:00
Cheer Xiao
034e74134c Print detailed completion error 2015-07-06 19:59:38 +02:00
Cheer Xiao
3fad7f2ef1 Print status with color 2015-07-06 19:40:11 +02:00
Cheer Xiao
945822d21d Fix completion of file names when there is no slash 2015-07-06 18:00:08 +02:00
Cheer Xiao
8794232b26 Support completion of commands 2015-07-06 17:58:51 +02:00
Cheer Xiao
f52e1760b0 Revamp file name completion 2015-07-06 14:52:15 +02:00
Cheer Xiao
f85fe381d7 Bind ^H to kill-rune-left
This resolves issue #55.
2015-05-04 13:26:22 +02:00
Cheer Xiao
404c7debdb Implement the nop builtin ":" 2015-03-01 14:43:35 +01:00
Cheer Xiao
7d632d2714 Remove ItemTypeCount 2015-02-27 02:36:53 +01:00
Cheer Xiao
c1ffe6d885 Use stringer to generate ItemType.String implementation 2015-02-27 02:35:39 +01:00
Cheer Xiao
b169468c2f Use go generate; clean up Makefile 2015-02-27 02:29:40 +01:00
Cheer Xiao
63149884a9 Remove the doc directory
Design documents are now all on the issue tracker.
2015-02-26 17:27:55 +01:00
Cheer Xiao
900d814edb Move util/deepprint{"" _test}.go into print package
This fully eliminates the util package.
2015-02-26 17:10:37 +01:00
Cheer Xiao
dfe6dfbc7b Add strutil to Makefile 2015-02-26 17:05:36 +01:00
Cheer Xiao
05e97720ca Move util/strings{"" _test} into dedicated strutil package 2015-02-26 17:04:07 +01:00
Cheer Xiao
29b916e85d Merge edit/tty into sys 2015-02-26 16:58:24 +01:00
Cheer Xiao
876b7ac40c Move util/path.go into dedicated sysutil package 2015-02-26 16:50:20 +01:00
Cheer Xiao
48c9fbd1a2 Move util/ceildiv{"" _test} to edit/ 2015-02-26 15:32:49 +01:00
Cheer Xiao
d9e94440cb Move util/{after async_reader}.go to edit/ 2015-02-26 15:31:21 +01:00
Cheer Xiao
6a88395a95 Work on comments of eval 2015-02-26 15:17:05 +01:00
Cheer Xiao
2d960cea6e Work on comment 2015-02-26 15:04:58 +01:00
Cheer Xiao
f9838c90c6 Avoid superfluous .String calls in evalSubscript 2015-02-26 15:03:18 +01:00
Cheer Xiao
d13b6eff1b Magic number 0644 -> const defaultFileRedirPerm 2015-02-26 14:59:33 +01:00
Cheer Xiao
06b0a1d283 Fix typo, fix compilation 2015-02-26 14:57:01 +01:00
Cheer Xiao
478d7df34f Replace a comment on os.Unsetenv 2015-02-26 14:54:23 +01:00
Cheer Xiao
e92abca968 Better type check for set 2015-02-26 14:50:48 +01:00
Cheer Xiao
f6c031a82d Make pipeline channels buffered 2015-02-26 12:56:43 +01:00
Cheer Xiao
3c5f192dd6 Check arity of subscript operands at runtime 2015-02-26 12:53:44 +01:00
Cheer Xiao
f407b94d09 Use persistent history in the editor
This resolves issue #45.
2015-02-26 00:40:35 +01:00
Cheer Xiao
d804f82350 Shorter method names of Store 2015-02-26 00:09:53 +01:00
Cheer Xiao
f2d23e65d0 Eliminate Get from method names of Store 2015-02-26 00:08:15 +01:00
Cheer Xiao
a9d2c1f4f8 Make the current line part of edit.history 2015-02-26 00:08:14 +01:00
Cheer Xiao
4601f9d161 edit.historyState -> history 2015-02-26 00:08:14 +01:00
Cheer Xiao
79d58afc17 Fix doc string of edit package 2015-02-25 17:24:35 +01:00
Cheer Xiao
91af2a8e8c Don't use dashes in golang sources 2015-02-25 16:43:31 +01:00
Cheer Xiao
b5bf7f2dba line -> cmd; visited_dir -> dir 2015-02-25 16:40:48 +01:00
Cheer Xiao
fb32536e3b Store line API change 2015-02-25 15:42:06 +01:00
Cheer Xiao
19b0b955b9 Reorganize sample scripts 2015-02-25 15:09:42 +01:00
Cheer Xiao
57cc156293 Move mutable states of Compiler into compileCtx.
This concludes issue #47.
2015-02-25 15:04:10 +01:00
Cheer Xiao
970f23f20a Test multiple invocations of Evaler.Eval 2015-02-25 14:47:50 +01:00
Cheer Xiao
7590f5055e Keep global ns in the Evaler 2015-02-25 12:27:18 +01:00
Cheer Xiao
e82e67fd4e Move mutable states of Evaler into evalCtx.
This is work on #47.
2015-02-25 12:21:06 +01:00
Cheer Xiao
9495a6adfa Evaluator -> Evaler 2015-02-25 00:37:18 +01:00
Cheer Xiao
1c5637e149 statusCb -> failHandler, called only when there is failure 2015-02-25 00:31:45 +01:00
Cheer Xiao
72d6e63238 Much cosmetics for edit 2015-02-24 22:56:38 +01:00
Cheer Xiao
060e9eeb62 Minor refactor on parse.RedirBase 2015-02-24 22:07:01 +01:00
Cheer Xiao
7de48274b1 Strip all parse.Node structs of the Node suffix 2015-02-24 21:59:14 +01:00
Cheer Xiao
e811e42cfe golint fixes for store 2015-02-24 21:53:34 +01:00
Cheer Xiao
2bce0c1fcb golint fixes for parse 2015-02-24 21:52:13 +01:00