At 12:41 PM 9/14/01 +1000, you wrote: >Hi, > >I am looking for some ideas for implementing a program in AVR that runs a >"pseudo code" from external serial flash memory. > >ie. >"pseudo code" is written on PC (tokens such as "Delay(100) etc). >The "pseudo code" is downloaded to external memory on target application >using AVR UART from PC. >The AVR then runs through the tokens listed in the "pseudo code" and >performs tasks as required. > >Thanks for any constructive ideas. What do you need ideas on? The tokenization is pretty easy to execute, just suck the instructions out of the SEEPROM and handle them. To tokenize the language you are using (or creating), I'd suggest using the standard Unix tools (also available for other platforms) of Lex and Yacc for the lexical analysis and compiling portions. Usually you tokenize the input stream using Lex and build a symbol table, the compiler part can be fairly simple though you'll want to do some processing to change algebraic into stack-based and that sort of thing. Last time I did this sort of thing, I used Flex and Bison. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu