Skip to content

A compiler for I language (simple imperative programming language), written in Haskell.

Notifications You must be signed in to change notification settings

aduraj/i-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Adrian Duraj, 18.09.2008

Compiler for I language.

Example in example.i file.
 
Generated .asm file (with option -keep-asm-file) - example.asm

LINUX VERSION:
Compilation:
    ghc -c compiler.hs
    ghc -o ic compiler.o -package parsec
    You can remove compiler.hi and compiler.o
    
Using:
    ./ic [-o program_name] [-keep-asm-file] source_file_name
    
You need to have gcc and nasm installed on your system.

WIN32 VERSION:
Compilation:
    ghc -c compiler.hs
    ghc -o ic compiler.o -package parsec
    You can remove compiler.hi, compiler.o and ic.exe.manifest 
    
Using:
    ic [-o program_name] [-keep-asm-file] source_file_name
    
You need to have gcc installed on your system and nasm.exe in your ic folder.

About

A compiler for I language (simple imperative programming language), written in Haskell.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published