Qi Xiao
ea43382430
newedit/utils -> newedit/editutil.
2018-10-13 18:38:14 +01:00
Qi Xiao
31a88b7ba4
newedit/core: Unexport Highlighter.
2018-10-13 18:34:28 +01:00
Qi Xiao
6a625751e2
Merge newedit/loop into newedit/core.
2018-10-13 18:29:16 +01:00
Qi Xiao
4af693d2d9
newedit/core: Inline Setuper, Input, Output in TTY.
2018-10-13 18:16:44 +01:00
Qi Xiao
803789ddb0
newedit/core: Unexport Fake{SignalSource,TTY}.
2018-10-13 18:14:38 +01:00
Qi Xiao
e57c037ca7
golint fixes.
2018-10-13 17:52:54 +01:00
Qi Xiao
23820ee39c
parse: Package godoc.
2018-10-13 17:30:03 +01:00
Qi Xiao
980bc4792d
parse: Cleanups.
...
* Unexport the Parser type, and remove an unused field.
* parse.ParseAs -> parse.As; parse.Parse -> parse.AsChunk.
2018-10-13 17:27:39 +01:00
Qi Xiao
0904d79658
parse: Cosmetics.
2018-10-13 17:17:18 +01:00
Qi Xiao
26300831a6
parse: Remove the n method from Node.
2018-10-13 17:08:15 +01:00
Qi Xiao
e81cbd53f6
parse: The node struct now embeds a diag.Ranging.
2018-10-13 17:04:02 +01:00
Qi Xiao
73cdd67df1
diag: Fix a godoc.
2018-10-13 16:56:56 +01:00
Qi Xiao
24e0449318
s/Pprint/PPrint/ everywhere.
2018-10-13 16:51:00 +01:00
Qi Xiao
ad1a28adf0
diag: Fix test.
2018-10-13 16:47:49 +01:00
Qi Xiao
1d414d4a89
diag: Fix a godoc, and unexport some variables.
2018-10-13 16:46:41 +01:00
Qi Xiao
7e5be2d893
parse: Remove boilerplate.{py,go}.
2018-10-13 16:41:00 +01:00
Qi Xiao
97cd87b83c
parse: Reduce amount of auto-generated boilerplates.
...
The ParseX functions, .setX and .allX methods have been removed and
replaced by a pattern based on reflection and pointer.
2018-10-13 16:19:11 +01:00
Qi Xiao
c88da9745e
parse: Unexport (*Parser).{Done,Errors}.
2018-10-13 14:37:38 +01:00
Qi Xiao
8bc3af27b7
parse: Add godoc to the boilerplate file.
2018-10-13 14:30:33 +01:00
Qi Xiao
0a0b09655e
parse: Remove Begin() and End() from Node.
...
These are superseded by the n.Range().From and n.Range().To.
2018-10-13 14:07:54 +01:00
Qi Xiao
16f5c8c149
parse: More godoc.
2018-10-13 14:04:13 +01:00
Qi Xiao
15dd028dcb
Introduce diag.Ranger and diag.Ranging for expressing ranges.
...
The parse.node type implements Ranger.
2018-10-13 14:04:13 +01:00
Qi Xiao
fe234ca3ce
parse: Remove PPrint{AST,ParseTree}.
...
PPrint{AST,ParseTree}To have been renamed to PPrint{AST,ParseTree}.
2018-10-13 14:04:13 +01:00
Qi Xiao
931200b1ce
eval: Rename *Frame's method EvalOp -> Eval -> eval.
2018-10-13 14:04:13 +01:00
Qi Xiao
217ed4b9e0
eval: Refactor Evaler API.
...
EvalWithStdPorts and Eval have been merged into EvalInTTY; the original
eval method is renamed Eval.
Also factor the logic for relaying interrupts.
2018-10-13 14:04:13 +01:00
Qi Xiao
1c133f6979
util: Change the API of WithTempDir and InTempDir.
...
They have been renamed to TestDir and InTestDir, and instead of taking a
callback, they return a cleanup function. This saves one level of
indentation in the caller.
2018-10-13 14:04:13 +01:00
Qi Xiao
910b3b73eb
Update README.md
...
Comment out badges for VSTS and codecov.io.
2018-10-11 13:29:30 +08:00
Qi Xiao
cee01232ec
Move eval/vals.Feed to util, and add a test.
2018-10-11 00:25:24 +08:00
Qi Xiao
fb80862ec4
Add a new package diag for diagnostic utils.
2018-10-11 00:20:32 +08:00
Qi Xiao
dc940a022a
newedit: Test edit:insert:default-handler.
2018-10-11 00:03:53 +08:00
Qi Xiao
7c25616010
newedit: Install insert mode and a default binding in NewEditor.
2018-10-10 21:46:47 +08:00
Qi Xiao
e747e28d38
newedit: Set BindingKey in keyHandlerFromBinding.
2018-10-10 21:27:20 +08:00
Qi Xiao
82c33b150f
newedit/types: LastKey -> BindingKey
2018-10-10 21:12:07 +08:00
Qi Xiao
4fc36d1668
newedit/types: Remove NextAction from State.
2018-10-10 21:09:30 +08:00
Qi Xiao
0d2c1b5893
eval: Support evaluation with an alternative global scope.
...
Also open up the Op struct.
2018-10-10 21:07:42 +08:00
Qi Xiao
cdd5576760
eval: Introduce an Op type that combines effectOp and Source.
2018-10-10 19:43:42 +08:00
Qi Xiao
21299a200c
newedit/utils: BasicHandler notifies on unbound keys.
2018-10-10 18:17:38 +08:00
Qi Xiao
495dec3479
newedit/insert: Reword godoc.
2018-10-10 18:17:38 +08:00
Qi Xiao
8f79740580
Update README.md
2018-10-10 17:45:06 +08:00
Qi Xiao
54925c6f41
newedit/utils: Add godoc to ActionError's methods.
2018-10-10 12:36:50 +08:00
Qi Xiao
b9cba9fef0
newedit/insert: More godocs.
2018-10-10 12:34:02 +08:00
Qi Xiao
a38f4ffa5c
README: Link to the philosophy and name pages.
2018-10-10 00:45:37 +08:00
Qi Xiao
2c9b189400
README: Reword the contributing paragraph.
2018-10-10 00:42:57 +08:00
Qi Xiao
e0c54e8004
Fix the type of $num-bg-jobs, and add a test.
...
This fixes #763 .
2018-10-10 00:39:24 +08:00
Qi Xiao
50834d5e71
Update README.md.
...
Move the Name section to a dedicated page in elv.sh/ref.
2018-10-10 00:35:59 +08:00
Qi Xiao
9a332c76d1
Update README.md
...
Move the walkthrough before the CONTRIBUTING.md link.
2018-10-10 00:18:56 +08:00
Qi Xiao
640e365819
Update README.md
...
Provide a walkthrough of how to become a master Elf.
2018-10-10 00:14:39 +08:00
Qi Xiao
8fd172dfa0
Update README.md
2018-10-09 23:59:16 +08:00
Qi Xiao
b928e74049
Move the building instructions to CONTRIBUTING.md.
2018-10-09 23:55:25 +08:00
Qi Xiao
c93bd41088
Update README.md
...
* Trim down the intro.
* Reorganize the building section, and remove the instruction of using `brew install --HEAD`.
2018-10-09 23:50:11 +08:00