Carlos, what are the requirements from your systems, are the rules static and set once or are they dynamic and can change at runtime ? If they are static, you want to do as much as possible off line and only save a compiled version of the rules conditions and actions. This can be represented as data (using the proper interpreter) or as code (more efficient and probably simpler). In both cases, you can generate them by hand or using some compiler for a rule language you can define (and implement using Lex, Yacc, JavaCC etc). Try to give a more detailed description of the requirements. Tal > -----Original Message----- > From: pic microcontroller discussion list=20 > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Carlos Ojea > Sent: Wednesday, May 28, 2003 7:29 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: Parser >=20 >=20 > Hello: >=20 > I want to implement a 'action table' stored in eeprom. PIC=20 > reads the table in order to execute 'actions'. Example of an=20 > action: If ((Var1 & Var2)&(Var3<0x0C)) Then DoSomething. >=20 > =BFSomeone knows where could I find a Lex&Yacc to do a parser for = PIC18? >=20 > Thanks, > Carlos >=20 > -- > http://www.piclist.com hint: The list server can filter out=20 > subtopics (like ads or off topics) for you. See=20 http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics