hi Randy,
While compiling example code found on page 22 of AoA (for WINDOWS) I got err message

C:\hla\projects\DemoVars>hla dv
Error in file "c:\hla\include\os.hhf" at line 5 :
Expected ';', encountered 'namespace'.
Near: << namespace >>

What is the way around it?

thank you
Posted on 2003-03-21 11:03:56 by Green Joe
I solved the problem mentioned above. The reason was trivial: I didn't put ";" in the end of the first *program* statement. But error msg was so misleading...
Posted on 2003-03-21 13:29:10 by Green Joe

I solved the problem mentioned above. The reason was trivial: I didn't put ";" in the end of the first *program* statement. But error msg was so misleading...

Yes, this is the main reason I'll never use Flex and Bison to write another compiler in my life. Error recovery and reporting is attrocious. *Someday* I will rewrite HLA in a different language (specifically, HLA) and this is one of the many problems that will go away then.
Cheers,
Randy Hyde
Posted on 2003-03-24 22:50:07 by rhyde