Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
996 bytes
|
Line | |
---|
1 | This directory contains an interpreter for a small functional
|
---|
2 | programming language (called "AS"). It uses JFlex and CUP.
|
---|
3 |
|
---|
4 | Directory contents:
|
---|
5 |
|
---|
6 | - Main.java is the main program. It reads an AS program from
|
---|
7 | std in and interprets it.
|
---|
8 |
|
---|
9 | - Makefile runs jflex, cup, javac and the compiled interpreter
|
---|
10 |
|
---|
11 | - Classes beginning with "T" implement the abstract syntax tree.
|
---|
12 | They also contain context condition checking and the interpreter.
|
---|
13 |
|
---|
14 | - Symtab.java, SymtabEntry.java, STEfun.java, STEvar.java implement
|
---|
15 | the symbol table.
|
---|
16 |
|
---|
17 | - scanner.lex and parser.cup contain the scanner and parser.
|
---|
18 |
|
---|
19 | - example.as is an example program in AS
|
---|
20 |
|
---|
21 |
|
---|
22 | The language is described in:
|
---|
23 | Manfred Broy: Einfuehrung in die Informatik, Springer Verlag
|
---|
24 |
|
---|
25 | The files are a solution to excercise 3.40 in the book:
|
---|
26 | Manfred Broy,Bernhard Rumpe:
|
---|
27 | Uebungen zur Einfuehrung in die Informatik --
|
---|
28 | Strukturierte Aufgabensammlung mit Musterloesungen,
|
---|
29 | Springer Verlag, 2001
|
---|
30 |
|
---|
31 | Both books are only available in German. Sorry.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.