This commit is contained in:
2013-06-02 09:16:39 +02:00
parent 1ad2f87bca
commit 49758958de

View File

@@ -1,3 +1,5 @@
scully - a simple Programming Language with some randonmness implemented using LLVM
# Requirements # Requirements
- LLVM 3.2 - LLVM 3.2
- A recent C and C++ compiler - A recent C and C++ compiler
@@ -25,6 +27,11 @@ and type in your program, you can use
for more input awesomeness. (http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap) for more input awesomeness. (http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap)
# Interpreter output (for each line)
First you see a textual Representation of the AST (Generated from class PrintVisitor)
if you called a function this is followed by "Evaluated to: $(stdout (e.g. from put_char())$(return value of function)
After that the optimized LLVM representation of the code is printed out
# Examples # Examples
see doc/ directory, you can directly pipe them into the interpreter see doc/ directory, you can directly pipe them into the interpreter