Jump to content

Recommended Posts

Posted

I'm using a stack processor in an FPGA design. The processor's assembly language is modeled after forth and I'm looking for a simple way to build an assembler or compiler using AutoIT because I'm most familiar with that language.

Posted

FPGAs are pretty easy when you have something like LabView to do it for you :graduated:

I don't see why AutoIt can't be used as a compiler. It would be slow though as compilers usually have to manage a lot of data (in general, I've never used forth). Due to the nature of compilers, there isn't much advantage in using AutoIt. There is little need for dynamic types, and a real need for either classes or structures.

There is an example of a lexer (by Manadar) and a parser (by me) here: Turning those into a compiler is a bit more tricky, you'll have to look at my C example to output an AST from the parser rather than executing as you go. From then you'll have to look at code generation.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...