How do i implement If statement in Flex/bison

Posted by Imran on Stack Overflow See other posts from Stack Overflow or by Imran
Published on 2010-04-15T10:55:30Z Indexed on 2010/04/15 11:03 UTC
Read the original article Hit count: 541

Filed under:
|
|

Hallo, I need help in flex/bison. Im a beginner in flex/bison, and i hav already looked out these programs and somethings i inderstood, but im learning. My problem is, i want to implement a If-statement via Flex/Bison and i dont know how to start how to do, someone any idea, im very thankful for all your help.

here is an example i want to implement:

:L1
IF FLAG AND X"0001"
EVT 23;
ELSE
WAIT 500 ms;
JMP L1;
END IF;

how do i implement JMP (jump), when JMP comes it has to jump to the Label L1.

© Stack Overflow or respective owner

Related posts about yacc

Related posts about lexical-analyser