dougmoran Posted September 30, 2011 Share Posted September 30, 2011 Hey folks, does anyone happen to have code for a Forth compiler or assembler in Autoit3? Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 30, 2011 Share Posted September 30, 2011 I highly doubt it. Why do you want Au3 source to something like that? Link to comment Share on other sites More sharing options...
dougmoran Posted October 1, 2011 Author Share Posted October 1, 2011 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. Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 1, 2011 Share Posted October 1, 2011 I've never heard of any real compiler written in AutoIt. Most likely because it's not the best language for managing the kinds of things a compiler would need to manage. Link to comment Share on other sites More sharing options...
ZOTHOP Posted October 5, 2011 Share Posted October 5, 2011 Good luck to create a compiler particulary for assembler ! Link to comment Share on other sites More sharing options...
twitchyliquid64 Posted October 5, 2011 Share Posted October 5, 2011 fpga? isn't that really hard to develop logic for? man that shit is intense. ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search Link to comment Share on other sites More sharing options...
Mat Posted October 5, 2011 Share Posted October 5, 2011 FPGAs are pretty easy when you have something like LabView to do it for you 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. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now