Commit Graph

1426 Commits

Author SHA1 Message Date
Qi Xiao
587bac7317 parse: Test against Pprint{AST,ParseTree}. 2016-02-17 01:05:51 +01:00
Qi Xiao
903de40d60 glob: More test cases. 2016-02-17 00:44:35 +01:00
Qi Xiao
84d9e34ab1 Remove badge for the print package. 2016-02-17 00:36:03 +01:00
Qi Xiao
fe449c66bc Merge the print package into util. 2016-02-17 00:35:20 +01:00
Qi Xiao
2ec7c6103f Use https for gocover.io badge URLs. 2016-02-17 00:30:11 +01:00
Qi Xiao
ecaf1b73f9 Fix loading of external modules. 2016-02-16 23:24:09 +01:00
Qi Xiao
c37a51c2ed Implement the use builtin.
This addresses #135.
2016-02-16 23:15:12 +01:00
Qi Xiao
ef1112d53f Update README.md 2016-02-16 20:01:34 +01:00
Qi Xiao
99eb48b2b5 Fix display of parser error 2016-02-16 19:58:47 +01:00
Qi Xiao
7812824eff Remove the badge for main package. 2016-02-16 19:16:12 +01:00
Qi Xiao
5db90fd20f Merge *util packages into an util package. 2016-02-16 19:15:29 +01:00
Qi Xiao
a8cad30a20 Add trailing slashes to all gocover.io badge URLs. 2016-02-16 19:07:16 +01:00
Qi Xiao
7d18431a8b Add gocover.io test coverage badges. 2016-02-16 19:04:15 +01:00
Qi Xiao
ff4d09090b Merge pull request #133 from hexchain/patch-1
Fix typo
2016-02-16 15:40:08 +01:00
Hexchain Tong
f1dee4ab29 Fix typo
FreeBDS -> FreeBSD
2016-02-16 22:37:16 +08:00
Qi Xiao
d88f0447c3 Parse incomplete lists correctly. 2016-02-16 14:51:49 +01:00
Qi Xiao
c19a48ea8a Support defining recursive functions with fn. 2016-02-16 14:49:22 +01:00
Qi Xiao
64c9bf842d edit: Hide errors at the end. 2016-02-16 14:47:14 +01:00
Qi Xiao
b86ff2eb06 Show parser errors as well. 2016-02-16 14:32:35 +01:00
Qi Xiao
9ca0f83256 Show content of compiler error. 2016-02-16 13:55:10 +01:00
Qi Xiao
a016fb8cbe Add an XXX about concurrency-safety. 2016-02-16 13:04:43 +01:00
Qi Xiao
4a5f836626 Show output of key-bound function in notification. 2016-02-16 12:13:35 +01:00
Qi Xiao
6b6532f953 Fix broken test. 2016-02-16 01:54:19 +01:00
Qi Xiao
cdea3cc9b5 Let = use the error channel instead of output 2016-02-15 23:43:08 +01:00
Qi Xiao
b8e831f709 Implement builtin len. 2016-02-15 23:00:21 +01:00
Qi Xiao
5000c60813 add Eval.Struct, use it to wrap structs. 2016-02-15 22:36:37 +01:00
Qi Xiao
c863ac6381 eval: add roVariable. 2016-02-15 22:19:51 +01:00
Qi Xiao
fa8a69c5d3 edit: Fix interface of BindingTable. 2016-02-15 18:34:31 +01:00
Qi Xiao
a73efadf4d Add a count builtin. 2016-02-15 15:15:40 +01:00
Qi Xiao
5609dd1a84 Implement IndexerCaller.
Now we have M-expression!
2016-02-15 15:00:34 +01:00
Qi Xiao
a2635d78b7 eval: getCaller -> mustCaller 2016-02-15 14:54:41 +01:00
Qi Xiao
5219fbcbdf Make Indexer.Index take []Value and return []Value 2016-02-15 14:53:27 +01:00
Qi Xiao
ed2855c595 Fix using Indexer as Caller. 2016-02-15 14:31:59 +01:00
Qi Xiao
0fdf595633 eval: factor out captureOutput. 2016-02-15 14:28:32 +01:00
Qi Xiao
043de2371f eval: Reorganize files. 2016-02-15 14:18:27 +01:00
Qi Xiao
6f32a4d1fd Make String a Caller. 2016-02-15 14:14:15 +01:00
Qi Xiao
0f4d68a5bd Close DB before execing.
Weirdly, this does not fix the database lock bug.
2016-02-15 14:13:50 +01:00
Qi Xiao
a8635caab7 Use \e[2m (dim) as the style for completion and history. 2016-02-15 13:37:08 +01:00
Qi Xiao
d1fbe07f46 edit: Insert history in a separate goroutine. 2016-02-15 09:56:44 +01:00
Qi Xiao
a1b770db3a Deal with args and redirs on control structures. 2016-02-14 20:13:42 +01:00
Qi Xiao
1c40246c22 Print the panic cause in the global recovery function. 2016-02-14 20:06:34 +01:00
Qi Xiao
27a548488f More sensible parsing of command leaders. 2016-02-14 20:06:18 +01:00
Qi Xiao
9eaca63c9b parse: Force parsing of form head. 2016-02-14 19:58:36 +01:00
Qi Xiao
eda20bad02 Fix while, for only running one loop; fix do.
This complete resolves #104.
2016-02-14 19:52:23 +01:00
Qi Xiao
f66b39e2ec Handle continue and break in for and while. 2016-02-14 19:45:31 +01:00
Qi Xiao
ec9a628ba0 Implement for. 2016-02-14 19:42:08 +01:00
Qi Xiao
26006a03f4 Parse the for form correctly. 2016-02-14 19:18:10 +01:00
Qi Xiao
6e1090b887 Implement control structures except for for. 2016-02-14 19:13:12 +01:00
Qi Xiao
0afe57b179 Parse G3 arrow keys. 2016-02-14 18:31:36 +01:00
Qi Xiao
4b3d18442a Use outer product semantics for indexing. 2016-02-14 18:13:53 +01:00