aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-06-27Shave a few lines.David Robillard1-4/+2
git-svn-id: http://svn.drobilla.net/resp/tuplr@153 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-27Add nothing type.David Robillard1-12/+18
Only actually compile down to LLVM if main program is typed. git-svn-id: http://svn.drobilla.net/resp/tuplr@152 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-27More CPS conversion work.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@151 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-26More CPS conversion work.David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/resp/tuplr@150 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-25Sanify AST constructors.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@149 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-25Stubs for CPS conversion.David Robillard1-1/+5
git-svn-id: http://svn.drobilla.net/resp/tuplr@148 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20Make backend an object.David Robillard1-11/+11
git-svn-id: http://svn.drobilla.net/resp/tuplr@142 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20Clean separation between backend and CEnv (no more CEnv methods defined in ↵David Robillard1-3/+3
llvm.cpp). git-svn-id: http://svn.drobilla.net/resp/tuplr@140 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20Remove redundant module pointer.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@139 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20More sanification of front/back end separation.David Robillard1-2/+6
git-svn-id: http://svn.drobilla.net/resp/tuplr@138 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20Shorten AST names to match code names.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/resp/tuplr@136 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-20Move eval and repl to tuplr.cpp (non-backend dependent code).David Robillard1-1/+120
git-svn-id: http://svn.drobilla.net/resp/tuplr@133 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-19Remove crufty cons/car/cdr implementation that doesn't work anyway.David Robillard1-5/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@128 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-19Work towards garbage collection and explicitly managed stack frames.David Robillard1-4/+10
git-svn-id: http://svn.drobilla.net/resp/tuplr@126 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-19Fix function definitions with several expressions in body.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@125 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-19Factor out memory/GC related things from AST to Object.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/resp/tuplr@124 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-19Primitive garbage collector for AST nodes.David Robillard1-1/+4
Fix memory leaks. git-svn-id: http://svn.drobilla.net/resp/tuplr@123 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-18Rearrange Error order.David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/resp/tuplr@122 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-18THROW_IF macro.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/resp/tuplr@120 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-18Primitive internal macro system (for implementing sugar).David Robillard1-0/+49
(def (f x) ...) sugar. git-svn-id: http://svn.drobilla.net/resp/tuplr@119 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-06-18Strip trailing whitespace.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/resp/tuplr@118 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-30Add really primitive pretty printer.David Robillard1-5/+25
git-svn-id: http://svn.drobilla.net/resp/tuplr@110 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-15Set name of closures so defined functions are emitted with meaningful names.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/resp/tuplr@103 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-15Clean up ATuple, AType, Exp.David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/resp/tuplr@98 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-15Merge 'code' and 'type' environments.David Robillard1-3/+3
Better error reporting for bad function parameters. git-svn-id: http://svn.drobilla.net/resp/tuplr@94 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-14Lexical addressing, work towards true parametric polymorphism.David Robillard1-3/+9
git-svn-id: http://svn.drobilla.net/resp/tuplr@88 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-12Tidy.David Robillard1-0/+28
git-svn-id: http://svn.drobilla.net/resp/tuplr@85 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Shorter and more consistent names (AST -> A).David Robillard1-20/+20
git-svn-id: http://svn.drobilla.net/resp/tuplr@78 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Make out and error streams fields of CEnv instead of static globals.David Robillard1-4/+0
git-svn-id: http://svn.drobilla.net/resp/tuplr@73 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Tidy.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/resp/tuplr@72 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Block comments.David Robillard1-10/+23
Wrap up cursor moving logic into a separate function so it's less crufty. git-svn-id: http://svn.drobilla.net/resp/tuplr@71 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Typing improvements.David Robillard1-3/+3
More location information. git-svn-id: http://svn.drobilla.net/resp/tuplr@67 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-07Fancy error reporting for type errors, among other things.David Robillard1-18/+18
git-svn-id: http://svn.drobilla.net/resp/tuplr@66 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Remove low level type stuff completely from core code (let the backend deal ↵David Robillard1-1/+5
with conversion of abstract types to compiled types). git-svn-id: http://svn.drobilla.net/resp/tuplr@65 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Cleanup and de-llvm-ify primitive stuff.David Robillard1-1/+42
Fix type inference (only treat actual type expressions as type expressions). git-svn-id: http://svn.drobilla.net/resp/tuplr@64 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Tidy.David Robillard1-2/+0
git-svn-id: http://svn.drobilla.net/resp/tuplr@58 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Halfway decent main program.David Robillard1-0/+87
Move main program stuff from LLVM specific code file to tuplr.cpp. git-svn-id: http://svn.drobilla.net/resp/tuplr@57 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Fully remove LLVM dependency from core code.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/resp/tuplr@52 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-06Split LLVM dependent backend from core code.David Robillard1-1181/+6
No more pretty little one filer. Oh well. git-svn-id: http://svn.drobilla.net/resp/tuplr@51 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Shrink.David Robillard1-20/+10
git-svn-id: http://svn.drobilla.net/resp/tuplr@50 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Less parser specialmagic cruft.David Robillard1-54/+31
git-svn-id: http://svn.drobilla.net/resp/tuplr@49 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Proper error reporting for undefined symbols.David Robillard1-41/+46
Fix line/col in error messages to point to start of relevant token. git-svn-id: http://svn.drobilla.net/resp/tuplr@48 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Remove silly looking parenthesis from primitive type expressions.David Robillard1-25/+42
git-svn-id: http://svn.drobilla.net/resp/tuplr@47 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Make TEnv an actual lexical environment (not used yet).David Robillard1-23/+17
Proper parsing of boolean literals "true" and "false". git-svn-id: http://svn.drobilla.net/resp/tuplr@46 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Cleanup.David Robillard1-27/+30
git-svn-id: http://svn.drobilla.net/resp/tuplr@45 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Proper type inferencing for functions (and more generic) (type the identity ↵David Robillard1-30/+42
function polymorphically correctly). git-svn-id: http://svn.drobilla.net/resp/tuplr@44 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Work with LLVM 2.4.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/resp/tuplr@43 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Don't lift variable typed closures (but don't die).David Robillard1-8/+6
Add some test programs. git-svn-id: http://svn.drobilla.net/resp/tuplr@42 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05Cleanup.David Robillard1-16/+10
git-svn-id: http://svn.drobilla.net/resp/tuplr@41 ad02d1e2-f140-0410-9f75-f8b11f17cedd
2009-03-05GCC style error reporting with line and column number.David Robillard1-102/+116
git-svn-id: http://svn.drobilla.net/resp/tuplr@40 ad02d1e2-f140-0410-9f75-f8b11f17cedd