kaleidoscope-hs-old.git
9 months agoAdd for loops master
Luke Lau [Thu, 11 Apr 2019 22:46:06 +0000 (23:46 +0100)]
Add for loops

9 months agoAdd putchard and move to OrcJIT
Luke Lau [Tue, 19 Mar 2019 23:14:39 +0000 (23:14 +0000)]
Add putchard and move to OrcJIT

9 months agoAdd externs and change type to double
Luke Lau [Mon, 18 Mar 2019 15:50:30 +0000 (15:50 +0000)]
Add externs and change type to double

9 months agoHandle ending ;
Luke Lau [Sun, 10 Mar 2019 17:04:29 +0000 (17:04 +0000)]
Handle ending ;

9 months agoAdd parenthesis to parsing
Luke Lau [Sun, 10 Mar 2019 16:42:07 +0000 (16:42 +0000)]
Add parenthesis to parsing

9 months agoIgnore .swp files
Luke Lau [Sun, 10 Mar 2019 16:32:43 +0000 (16:32 +0000)]
Ignore .swp files

9 months agoAdd doctests
Luke Lau [Sun, 10 Mar 2019 16:31:26 +0000 (16:31 +0000)]
Add doctests

Run with `doctest Main.hs`

9 months agoCheck the type of if condition
Luke Lau [Sun, 10 Mar 2019 16:11:02 +0000 (16:11 +0000)]
Check the type of if condition

9 months agoImplement codegen for if statements
Luke Lau [Sun, 10 Mar 2019 16:07:39 +0000 (16:07 +0000)]
Implement codegen for if statements

9 months agoParse if statements
Luke Lau [Sun, 10 Mar 2019 15:52:06 +0000 (15:52 +0000)]
Parse if statements

9 months agoAdd basic error handling
Luke Lau [Sun, 10 Mar 2019 15:13:34 +0000 (15:13 +0000)]
Add basic error handling

9 months agoAdd default optimisation passes
Luke Lau [Sun, 10 Mar 2019 15:03:03 +0000 (15:03 +0000)]
Add default optimisation passes

9 months agoUpdate AST to match Kaleidoscope more closely
Luke Lau [Sun, 10 Mar 2019 14:34:09 +0000 (14:34 +0000)]
Update AST to match Kaleidoscope more closely

9 months agoExtend AST for functions, calls and variables
Luke Lau [Sun, 10 Mar 2019 12:57:20 +0000 (12:57 +0000)]
Extend AST for functions, calls and variables

9 months agoAdd support for more binary ops
Luke Lau [Sun, 10 Mar 2019 12:37:36 +0000 (12:37 +0000)]
Add support for more binary ops

9 months agoPrint module to stderr
Luke Lau [Sun, 10 Mar 2019 01:58:12 +0000 (01:58 +0000)]
Print module to stderr

9 months agoAdd basic JIT
Luke Lau [Sun, 10 Mar 2019 01:56:37 +0000 (01:56 +0000)]
Add basic JIT

9 months agoBegin IR building
Luke Lau [Sun, 10 Mar 2019 01:36:05 +0000 (01:36 +0000)]
Begin IR building

9 months agoBegin parsing addition
Luke Lau [Sun, 10 Mar 2019 01:18:24 +0000 (01:18 +0000)]
Begin parsing addition