Commit Graph

183 Commits

Author SHA1 Message Date
Brian Picciano
b9a40be6d8 add BUILD file so I remember how 2016-08-01 18:08:18 -06:00
Brian Picciano
6595d291c1 implement basic context 2016-07-28 18:39:18 -06:00
Brian Picciano
63fead5d8b small TODOs 2016-07-28 17:14:33 -06:00
Brian Picciano
f5facb6506 move parsing stuff in expr into its own set of files 2016-07-28 17:10:47 -06:00
Brian Picciano
d48bcf34b8 refactor the Equal method out of the Actual interface 2016-07-28 17:07:04 -06:00
Brian Picciano
9c9c8afb7d get rid of pipe, sorry pipe 2016-07-28 16:23:06 -06:00
Brian Picciano
da0d0dfc18 got macro statements working 2016-07-28 13:57:17 -06:00
Brian Picciano
fd125b3dcd actually connect Expr to llvm somewhat, wrote addExpr 2016-07-24 15:57:48 -06:00
Brian Picciano
b53da9531c implement expr.Macro 2016-07-24 15:04:06 -06:00
Brian Picciano
9f53060b0c refactor expr to remove complexity in individual types 2016-07-24 14:52:15 -06:00
Brian Picciano
b988e22416 implement ParseAsBlock 2016-07-24 12:53:15 -06:00
Brian Picciano
2e76bebab3 fix problem with arrow not connecting if the left side was a tuple 2016-07-23 20:37:10 -06:00
Brian Picciano
09ab9399e5 add err field to exprErr 2016-07-23 20:26:26 -06:00
Brian Picciano
0de50c47ba move expr into its own package, make basic main 2016-07-23 11:06:26 -06:00
Brian Picciano
ec817b58cd better error messages 2016-07-23 10:59:11 -06:00
Brian Picciano
f2986c7a79 implement block comments in the lexer 2016-07-23 10:34:14 -06:00
Brian Picciano
85843cf871 rename types.go to expr.go 2016-07-23 10:19:16 -06:00
Brian Picciano
6fe8a533a2 implement Statement and Block 2016-07-22 15:53:27 -06:00
Brian Picciano
bdcd5f3b95 implement pipe operator 2016-07-22 14:53:04 -06:00
Brian Picciano
76f963694f got basic parsing of single expressions, parenthesis, and tuples done 2016-07-22 14:38:20 -06:00
Brian Picciano
a3602c52a9 moved lexer, made it a lot better 2016-07-06 20:46:49 -06:00
Brian Picciano
b8ef198384 wrote lexer... again. doesn't properly handle strings though 2016-07-05 20:03:04 -06:00
Brian Picciano
4f9baf7514 starting over again. I'm just gonna keep doing this about once a year for the rest of my life 2016-07-01 17:59:13 -06:00
Brian Picciano
2d779f8182 read through everything again, made some small fixes to docs 2015-07-15 20:32:53 -06:00
Brian Picciano
17004883e8 more additions to pkgctx 2014-10-24 14:10:07 -04:00
Brian Picciano
84c615ac58 add Traverse to seq 2014-10-24 13:32:28 -04:00
Brian Picciano
024e0d2bec added readme for mathgen 2014-10-23 21:04:58 -04:00
Brian Picciano
583e381ecb make sure mathgen outputs code which passes go fmt 2014-10-23 21:00:07 -04:00
Brian Picciano
f8c841fa99 codegen the math library. that felt gross 2014-10-23 20:46:05 -04:00
Brian Picciano
36afd5fef6 started on core/math.go. It's rough going 2014-10-23 19:55:42 -04:00
Brian Picciano
bf371cf8a9 implemented Empty in seq 2014-10-23 19:25:36 -04:00
Brian Picciano
0520386674 wrote a shitty eval 2014-10-21 00:06:49 -04:00
Brian Picciano
f7bc7be1f7 started thinking about macros 2014-10-20 22:51:05 -04:00
Brian Picciano
4bd9c94f82 go fmt ./... 2014-10-20 21:58:09 -04:00
Brian Picciano
b307273223 add ParseString and refactor parse_test a bit 2014-10-20 21:57:56 -04:00
Brian Picciano
269d033fcb add number tests to parse 2014-10-20 21:35:21 -04:00
Brian Picciano
6ec6a408f5 add parsing tests and make some fixes 2014-10-19 23:28:21 -04:00
Brian Picciano
b9669ac79b wrote the parser, need to write tests for it still 2014-10-19 23:14:00 -04:00
Brian Picciano
4188d0b84a make Elem interface have a method on it, implement that in seq (bleh), implement GoType 2014-10-18 20:03:16 -04:00
Brian Picciano
99b67fa801 encompass all opening and closing tokens with a single type, and implement them 2014-10-18 17:25:30 -04:00
Brian Picciano
c589cb8f08 changed my mind about types 2014-10-18 17:09:30 -04:00
Brian Picciano
7d23782048 fix the lexers package name 2014-10-18 17:09:06 -04:00
Brian Picciano
377ea8edbb add some docs and make token channel not be buffered 2014-10-18 12:32:54 -04:00
Brian Picciano
af6d4dc3c3 make eof token type private 2014-10-18 12:25:16 -04:00
Brian Picciano
6fa4b3b11d bail on the parse code, watched rob pike's talk and wrote a lexer based on that 2014-10-18 12:04:48 -04:00
Brian Picciano
c8fdb2e242 don't keep track of test files 2014-10-18 12:03:29 -04:00
Brian Picciano
3dc2842e2e use bufio.Reader instead of io.Reader 2014-10-14 21:57:35 -04:00
Brian Picciano
b8c09a905b add bare word/number parsing 2014-10-14 21:57:35 -04:00
Brian Picciano
55ecdc9f2a started on the parser 2014-10-06 20:55:15 -04:00
Brian Picciano
a4554494e3 add in seq package, borrowed from github.com/mediocregopher/seq 2014-10-06 18:29:52 -04:00