Commit Graph

1561 Commits

Author SHA1 Message Date
Qi Xiao
169b9917e3 Refine evaler's error reporting. 2016-02-20 00:48:13 +01:00
Qi Xiao
2b1b57f0aa Refine compiler's error reporting. 2016-02-19 21:16:23 +01:00
Qi Xiao
b2dbfaee39 Sort variables in completion. 2016-02-19 20:54:40 +01:00
Qi Xiao
7502b61b3e Don't style variables in completion menu. 2016-02-19 20:51:08 +01:00
Qi Xiao
d6a126946c Fix an error message. 2016-02-19 20:49:48 +01:00
Qi Xiao
2e08ae0975 Implement setting of variables in other modules correctly.
This fixes #141.
2016-02-19 20:39:22 +01:00
Qi Xiao
2cdbf67147 Slightly simplify Repr. 2016-02-19 20:31:54 +01:00
Qi Xiao
2413edcc09 Implement pretty printing.
This fixes #112.
2016-02-19 20:11:31 +01:00
Qi Xiao
07b0fc647c Split Value.Kind to Kinder 2016-02-19 18:59:32 +01:00
Qi Xiao
7efeb9c56f Remove ContextualError. 2016-02-19 17:46:21 +01:00
Qi Xiao
be3b938bcf The compiler no longer takes name and source. 2016-02-19 17:33:55 +01:00
Qi Xiao
9a2c30dd3e edit: Don't show tips when about to exit ReadLine. 2016-02-19 17:26:44 +01:00
Qi Xiao
f2b9276b35 eval: Split compile.go. 2016-02-19 17:21:51 +01:00
Qi Xiao
4b60877083 Write directory history in another goroutine. 2016-02-19 15:36:14 +01:00
Qi Xiao
5f3f438193 Guard access to EnvPathList with a RWMutex. 2016-02-19 14:26:14 +01:00
Qi Xiao
17ae71b36c Change the syntax of pairs to use = to separate key and value.
This resolves #136.
2016-02-19 13:58:49 +01:00
Qi Xiao
65a0ab4e83 eval: Introduce a MapLike interface. 2016-02-19 12:21:55 +01:00
Qi Xiao
50af039e16 Introduce a ListLike interface, let *EnvPathList implement it.
All embedded Value's have been removed from the interfaces in edit/value.go.
2016-02-19 12:19:19 +01:00
Qi Xiao
3d7e5a819f Introduce an Elemser interface. 2016-02-19 12:07:38 +01:00
Qi Xiao
83cbe3b230 Introduce a Lener interface. 2016-02-19 11:49:19 +01:00
Qi Xiao
2ac73b4eba Implement two-way syncing between $env:PATH and $paths. 2016-02-19 02:12:10 +01:00
Qi Xiao
4ca7fbca03 Move the "contributing" section to a shiny CONTRIBUTING.md file 2016-02-19 00:13:35 +01:00
Qi Xiao
e6a9e79ea0 Restructure the eval package. 2016-02-18 22:52:05 +01:00
Qi Xiao
c2a3e78d5f Fix Repr of empty list. 2016-02-18 19:42:06 +01:00
Qi Xiao
cc412f8684 Syncing from $env:PATH to $paths and ev.searchPaths.
This addresses #139.
2016-02-18 19:30:08 +01:00
Qi Xiao
ce4d6ff7f2 Disable a test failing on OS X. 2016-02-17 01:53:10 +01:00
Qi Xiao
be3ca4d050 Use "ls -A" to test against RootNames. 2016-02-17 01:47:44 +01:00
Qi Xiao
eebb759edb Fully cover util/exception.go. 2016-02-17 01:43:58 +01:00
Qi Xiao
31fb99daa7 Test against util.RootNames. 2016-02-17 01:41:00 +01:00
Qi Xiao
81422c1f70 Fix an incomplete database. 2016-02-17 01:40:46 +01:00
Qi Xiao
284b99c858 Fully cover util/strings.go. 2016-02-17 01:32:52 +01:00
Qi Xiao
7cb9a9496e util: Test Getwd thoroughly. 2016-02-17 01:27:51 +01:00
Qi Xiao
ffc1634ce5 util: GetHome now uses $HOME as override instead of fallback. 2016-02-17 01:23:36 +01:00
Qi Xiao
7f58514b37 parse: Test against bogus command leader. 2016-02-17 01:15:13 +01:00
Qi Xiao
8affd31812 parse: Remove unused code. 2016-02-17 01:13:07 +01:00
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