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
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
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...
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