Hello boys & girls,

as usual, use "diff".

for example:

after you:

flex hw1.lex
gcc -ll lex.yy.c

you'll get an a.out file which is your lexical analyzer.

type:

a.out < inTest.txt > myOutput.txt
diff outTest.txt myOutput.txt

Please e-mail me if you find any inconsistencies.

Assaf

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Technion References" 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/reference-technion?hl=en
-~----------~----~----~----~------~----~------~--~---

<tag attr="abc"> Hello World </tag>
<!--comment-->
0.31 <!--float-->
3 <!--int-->
0 <!--int-->
100 <!--int-->
78 <!--int-->
078.330 <!--float-->
.078 <!--float-->
0.92e3 <!--float-->
.98e0 <!--float-->
0798.392e1 <!--float-->
89e5 <!--float-->

<!--errors-->
="3"
<!--comment-->-->
<>
000.0e1
37e390.1
01.01
1e-09
.78e-5
000e3
37e
e

<!--the following should be in two comments-->
<!--comment--><!--another comment-->
<!--comment test...-->
<!---->
<!-------->
<!-->->-abs>>-->
<!-->
<!--            -->
<!-- <ignoredTag>hello</tag>-->
<!-- </-->
<!-->-->
<!--
this 
is 
a
multi-line
comment
        -->
<!-- ->->->-->
<!-- >->->->>-->
<!-------- >-->
<!-- -- - <- ->-> >->- -> >> ---a>-
->
-->     
</DONE>

SS_TAG:<tag
ATT:attr="abc"
SE_TAG:>
STRING:Hello
STRING:World
E_TAG:</tag>
COMMENT:<!--comment-->
FLOAT:0.31
COMMENT:<!--float-->
INT:3
COMMENT:<!--int-->
INT:0
COMMENT:<!--int-->
INT:100
COMMENT:<!--int-->
INT:78
COMMENT:<!--int-->
FLOAT:078.330
COMMENT:<!--float-->
FLOAT:.078
COMMENT:<!--float-->
FLOAT:0.92e3
COMMENT:<!--float-->
FLOAT:.98e0
COMMENT:<!--float-->
FLOAT:0798.392e1
COMMENT:<!--float-->
FLOAT:89e5
COMMENT:<!--float-->
COMMENT:<!--errors-->
error:=
error:"
INT:3
error:"
COMMENT:<!--comment-->
error:-
error:-
SE_TAG:>
error:<
SE_TAG:>
FLOAT:000.0e1
FLOAT:37e390
FLOAT:.1
FLOAT:01.01
FLOAT:1e-09
FLOAT:.78e-5
INT:0
INT:0
INT:0
STRING:e
INT:3
INT:37
STRING:e
STRING:e
COMMENT:<!--the following should be in two comments-->
COMMENT:<!--comment-->
COMMENT:<!--another comment-->
COMMENT:<!--comment test...-->
COMMENT:<!---->
COMMENT:<!-------->
COMMENT:<!-->->-abs>>-->
COMMENT:<!-->
<!--            -->
COMMENT:<!-- <ignoredTag>hello</tag>-->
COMMENT:<!-- </-->
COMMENT:<!-->-->
COMMENT:<!--
this 
is 
a
multi-line
comment
        -->
COMMENT:<!-- ->->->-->
COMMENT:<!-- >->->->>-->
COMMENT:<!-------- >-->
COMMENT:<!-- -- - <- ->-> >->- -> >> ---a>-
->
-->
E_TAG:</DONE>

לענות