llvm-6502/projects/Stacker/lib/compiler
Misha Brukman e803682f9a If we're going to use tabs, use them consistently. Maybe doxygen will find the
@parameter line documentation that way, too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12966 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-15 15:38:48 +00:00
..
Lexer.l Avoid TRUE and FALSE which apparently conflict with some macros on OSX 2004-03-31 03:49:47 +00:00
Makefile Initial stacker checkin 2003-11-23 17:52:55 +00:00
README Initial stacker checkin 2003-11-23 17:52:55 +00:00
StackerCompiler.cpp Avoid TRUE and FALSE which apparently conflict with some macros on OSX 2004-03-31 03:49:47 +00:00
StackerCompiler.h If we're going to use tabs, use them consistently. Maybe doxygen will find the 2004-04-15 15:38:48 +00:00
StackerParser.y Avoid TRUE and FALSE which apparently conflict with some macros on OSX 2004-03-31 03:49:47 +00:00

This directory contains a sample language front end for LLVM.

It is a *very* simple/crude implementation of FORTH. It has many
deficiencies but provides enough basics to give you an idea of 
what programming a new language front end for LLVM  looks like.

To keep things simple, Stacker has the following limitations:
1. Only a single, global stack is manipulated.
2. There is no interpretation, everything is compiled.
3. There's no type/bounds checking .. you're on your own.
4. There's no floating point support.
5. Only stdin can be read. Only stdout can be written. No other 
   file I/O is supported.

As such, this isn't a very useful language for anything other than
the most trivial of programs. It is, however, a good learning tool
(for both the author and the student).

Reid Spencer
16 November 2003