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

5 years 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

5 years 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

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

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

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

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

Run with `doctest Main.hs`

5 years 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

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

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

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

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

5 years 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

5 years 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

5 years 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

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

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

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

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