https://github.com/maximeheckel/ico-project
Compilation project in OCamL
https://github.com/maximeheckel/ico-project
Last synced: 2 months ago
JSON representation
Compilation project in OCamL
- Host: GitHub
- URL: https://github.com/maximeheckel/ico-project
- Owner: MaximeHeckel
- Created: 2013-11-19T13:31:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-19T09:11:30.000Z (over 11 years ago)
- Last Synced: 2025-02-07T17:34:46.388Z (4 months ago)
- Language: OpenEdge ABL
- Size: 730 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Compilation project
[Homepage](http://www.ensiie.fr/~guillaume.burel/compilation/)This project is an pseudo-pascal syntax analizer. It processes a file written in pseudo-pascal, analizes its structure and syntax and outputs the call graph.
##Prerequisites
You need to have `ocaml`, `ocamlyacc` and `ocamllex` installed.##Compile
To compile the project, type:make
To clean it:
make clean##Use
###Basic use./pseudopascal my_directory/my_file.p
For example to process the file `input/find.p`:
./pseudopascal input/find.p
It outputs the result in `dot` syntax.###Normal use
./pseudopascal.sh my_file.p
For example to process the `input/find.p` file:
./pseudopascal.sh find.p
It compiles the project, analyzes the file, saves the result in the `my_file.p.dot` file in `dot` syntax, executes the `dot` command to obtain `my_file.p.png`, and eventually opens it.
Notes:
- Only give to the script the name of the file, not the location. It automatically searches in the `input` directory.
- The results (`dot` file and `png` file) are created in the `output` directory
- It opens the `png`result with a command depending on your os.
- It can process multiple files at once:./pseudopascal.sh find.p hanoi.p