Skip to content

A simple interpreter that supports an assemble-style language.

License

Notifications You must be signed in to change notification settings

WinterShiver/Assemble-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Assemble-Interpreter

This is an Haskell inplementation of Assembler interpreter (part II) - CodeWars, which is a simple interpreter that supports an assemble-style language, mainly based on Text.Parsec.

To run the assemble scripts in GHCi:

-- in /src directory
Prelude> :l Interface.hs 
[1 of 4] Compiling AST              ( AST.hs, interpreted )
[2 of 4] Compiling AssembleParser   ( AssembleParser.hs, interpreted )
[3 of 4] Compiling Interpreter      ( Interpreter.hs, interpreted )
[4 of 4] Compiling Interface        ( Interface.hs, interpreted )
Ok, four modules loaded.
*Interface> :run main "../assembly_scripts/calc.a"
(5+1)/2 = 3

About

A simple interpreter that supports an assemble-style language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published