HI All,

Thanks a lot for your helps. I am sorry for the late response.

I believe merging tokens is a good idea. I finally give up Lex states
cause it is too much extra work. Due to my project schedule pressure,
I am still using the ugly solution: scan first to reduce extra \s and
use look ahead re. I will let you know after I finally got time to try
merging the token and solve this at the parer.

Let me explain a little bit  more about the data:

Vector part is used by Automatic Test Equipment to generate input to
IC and also compare output:
1 means drive High
0 means drive Low
H means compare High
L means compare Low

TSET 1 is the timing set used by the vector, which could be 1~256.
default TSET is following last line.

repeat 12 means repeat this vector 12 times. There are lots other
micro code also: if, jump, enable....

That is why I would have this data to parse:

TSET 1           001 X 0 00;
                       001 X 0 00;
                       001 X 0 00;
repeat 12        001 X 0 00;

Again, thanks for all your help.
Adun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to