I have made the parse tree with bison of a like html language which finds if
the input file is written correctly or not.

But i want to add code in order to make an interpreter which takes as input
the like html language and as output it gives the html code.

for example i want to give as input 
<START>
<USER ID=”1111” NAME=”kkkkkk” [EMAIL PROTECTED]>
<ATTRIB COLOR=”000000” FONT=”00ff00” TITLE=”gfdsa”>

<TEXT FONT=”ff0000”>Hello</TEXT>
<TEXT>World</TEXT>
<END>

and the output will be like this



<html>
<head>
         <title>gfdsa</title>
</head>

<body bgcolor="#000000" text="#00ff00">

<table>
  <tr>
     <td style="color: #ff0000">Hello</td>
     <td>World</td>
  </tr>
</table>

</body>
</html>


-- 
View this message in context: 
http://www.nabble.com/interpreter-with-bison-tf3715814.html#a10394471
Sent from the Gnu - Bison - Help mailing list archive at Nabble.com.



_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to