Qi Xiao
|
8dec0263c6
|
Allow newlines in more spaces.
|
2016-02-22 13:44:56 +01:00 |
|
Qi Xiao
|
f102a46833
|
Parse newlines after pipe and inside lists as oridnary spaces.
|
2016-02-22 13:26:22 +01:00 |
|
Qi Xiao
|
3d32200799
|
parse: Save one LOC.
|
2016-02-20 17:12:17 +01:00 |
|
Qi Xiao
|
5dee621830
|
parse: Run gofmt after generating boilerplate.
|
2016-02-20 17:10:44 +01:00 |
|
Qi Xiao
|
a1a495cc09
|
parse: Fix go:generate line.
|
2016-02-20 17:10:31 +01:00 |
|
Qi Xiao
|
09b77f6127
|
parse: Remove unused funcs; test Quote.
|
2016-02-20 17:05:28 +01:00 |
|
Qi Xiao
|
5a1fbf814b
|
Remove an used func.
|
2016-02-20 16:54:24 +01:00 |
|
Qi Xiao
|
4cca805a1c
|
parse: Add test cases.
|
2016-02-20 16:52:24 +01:00 |
|
Qi Xiao
|
2dba0c4b53
|
parse: Test parsing of control structures.
|
2016-02-20 15:34:31 +01:00 |
|
Qi Xiao
|
618d927605
|
parse: Check all fields of AST.
|
2016-02-20 15:17:34 +01:00 |
|
Qi Xiao
|
935bfd24e7
|
parse: Move checkAST into a seprate file, add doc.
|
2016-02-20 14:44:44 +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
|
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
|
5db90fd20f
|
Merge *util packages into an util package.
|
2016-02-16 19:15:29 +01:00 |
|
Qi Xiao
|
d88f0447c3
|
Parse incomplete lists correctly.
|
2016-02-16 14:51:49 +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
|
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
|
4b3d18442a
|
Use outer product semantics for indexing.
|
2016-02-14 18:13:53 +01:00 |
|
Qi Xiao
|
0e981ee6de
|
Preliminary parsing of control structures.
|
2016-02-14 15:29:00 +01:00 |
|
Qi Xiao
|
4ac2572555
|
Add a test case against parse.Parse.
|
2016-02-11 22:59:21 +01:00 |
|
Qi Xiao
|
dad3ddd86e
|
Update comment.
|
2016-02-11 20:28:18 +01:00 |
|
Qi Xiao
|
2fb73f4680
|
parse: Implement tryAssignment by tracking ps.errors.
|
2016-02-10 21:33:56 +01:00 |
|
Qi Xiao
|
8125e2f9e6
|
golint fixes.
|
2016-02-07 23:23:16 +01:00 |
|
Qi Xiao
|
9e40b129e1
|
Implement basic wildcard.
Implicit concat in compounds is much more strict now.
|
2016-02-07 20:39:03 +01:00 |
|
Qi Xiao
|
70f362667a
|
Compiling incomplete redir is now safe.
|
2016-02-07 19:10:52 +01:00 |
|
Qi Xiao
|
7603a83a98
|
Parse tildes; fix highlighting of wildcards.
|
2016-02-07 14:14:13 +01:00 |
|
Qi Xiao
|
64401af225
|
Variable nodes now have the variable name in .Value.
|
2016-02-07 02:31:11 +01:00 |
|
Qi Xiao
|
a41182a48a
|
Parsing of ?( and []{ is now safe; quote \n with '
|
2016-02-07 00:41:31 +01:00 |
|
Qi Xiao
|
e6bb065d4e
|
Parsing of incomplete maps is now safe.
|
2016-02-07 00:10:41 +01:00 |
|
Qi Xiao
|
74ae20cb8e
|
parse: Fix for last commit.
|
2016-02-06 23:29:38 +01:00 |
|
Qi Xiao
|
0ca923b38c
|
parse: Put the cutset in parser.
|
2016-02-06 23:17:57 +01:00 |
|
Qi Xiao
|
015def2d01
|
Cosmetics.
|
2016-02-06 17:13:53 +01:00 |
|
Qi Xiao
|
d7bd90e89e
|
parse: Add tests against error reporting.
|
2016-02-06 13:51:12 +01:00 |
|
Qi Xiao
|
954c75e16e
|
parse_test.go: Top down; comments.
|
2016-02-06 13:43:28 +01:00 |
|
Qi Xiao
|
4b7746e95a
|
Fix test cases.
|
2016-02-06 00:43:51 +01:00 |
|
Qi Xiao
|
c5c5a7ddcd
|
Fix parsing of assignment forms and the = builtin.
|
2016-02-06 00:43:29 +01:00 |
|
Qi Xiao
|
ddb7396046
|
Highlight compiling errors.
This fixes #64.
|
2016-02-05 23:25:13 +00:00 |
|
Qi Xiao
|
5c8a8d5eec
|
Make parse report all errors.
|
2016-02-06 00:08:39 +01:00 |
|
Qi Xiao
|
af9ca8cd14
|
parse: Order pprint.go top-down; expose pprint{AST,ParseTree}
|
2016-02-05 23:13:28 +01:00 |
|
Qi Xiao
|
36578d2203
|
parse: Reorganize parse.go in top-down order.
|
2016-02-05 23:04:39 +01:00 |
|
Qi Xiao
|
3e0dc9c57b
|
parse and compile argumentless lambdas
|
2016-02-05 01:04:52 +01:00 |
|
Qi Xiao
|
6a5f6bf244
|
indexed -> indexing
|
2016-02-03 15:36:12 +00:00 |
|
Qi Xiao
|
b775b97b66
|
parse: reader -> parser
|
2016-02-02 18:39:44 +00:00 |
|
Qi Xiao
|
b3138a842e
|
parse: Make spaces also separators in braced list
|
2016-02-02 18:24:36 +00:00 |
|