hanchenye-llvm-project/llvm/projects/Stacker/lib/compiler
Reid Spencer 30d8baea8d Adjust to changes in Makefile.rules
llvm-svn: 17167
2004-10-22 21:02:08 +00:00
..
Lexer.l Add support for dos-style files 2004-05-27 18:28:32 +00:00
Makefile Adjust to changes in Makefile.rules 2004-10-22 21:02:08 +00:00
README Initial stacker checkin 2003-11-23 17:52:55 +00:00
StackerCompiler.cpp This pass is not needed, as there is only ever one global: the stack 2004-10-07 04:10:36 +00:00
StackerCompiler.h Make the StackerCompiler and optimizing translator by running specific 2004-09-04 19:07:32 +00:00
StackerParser.y Changes For Bug 352 2004-09-01 22:55:40 +00:00

README

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