A FiM++ interpreter written in Haskell, using Parsec as a parser.
This project uses stack, a tool for repeatable, cross-platform builds of haskell projects. You'll need to install stack
to build the binaries or run the tests.
stack install
fim examples/helloworld.fim
stack test
- Boolean, Character, Number, and String literals
- Assigning to/reading from variables
- Arithmatic Operators
- Comparison Operators
- Boolean Operators
- Branching Statements
- While and Do While, and For loops
- User Input
- Calling Methods
- Comments
- Increment/Decrement
- String concatenation
- Creating arrays
- Reading elements from arrays
- Writing to arrays
- Switches
- The error messages are... not good, especially for parsing/lexing
- Interfaces (what does this even mean in a language without objects?)
- Inheritence (Not much point without libraries)
- More than one class (no syntax for calling other classes or creating objects)