Developers Heaven Forum

Desktop Programming => HLA => Topic started by: hide2may on November 20, 2008, 04:51:17 PM

Title: Problem in os.hhf
Post by: hide2may on November 20, 2008, 04:51:17 PM
Hi there,

I'm learning HLA using David's tutorial:-
http://docs.google.com/View?docID=d674v6b_21hfm8nm&revision=_latest&pli=1

The last program "testRandom" in chapter 06 doesn't seem to get compiled.
The message is as follows:-

   I:\projects\chap06>hla testRandom.hla
   Error in file "os.hhf" at line 5 [errid:107961/hlaparse.c]:
   syntax error, unexpected namespaceTkn, expecting DoOneValStmt.
   Near: << namespace >>

   os.hhf [4]:
   error: illegal instruction.

It sounds like the error is in "os.hhf", and
the first few lines of os.hhf reads:-

   #if( ! @define( os_hhf ))
   ?os_hhf := true;

   namespace os;

Any kind soul help me to tackle the problem?

Thanks in advance ^^
Title: Re: Problem in os.hhf
Post by: David on November 22, 2008, 05:46:08 AM
Shalom h2m,

The program compiles for me and works as expected ok here ....

HLA (High Level Assembler - FASM back end, POLINK linker) Version 1.104 build 20477 (prototype)

But ... it would NOT compile here ... HIDE Version 1.32.02 ( the newest HIDE IDE, with HLA included )

The program has always worked just fine for me, until I now just tried it in the latest HIDE as per above ... where it would not compile (It did compile fine ... from my previous HIDE IDE).

The problem seems to have been introduced in the recent HIDE compile.

So ... please just use HLA.exe to compile ... or use an older version of the HIDE IDE.

Please let me know if this helps.

Shalom shalom,

David
Title: Re: Problem in os.hhf
Post by: hide2may on November 23, 2008, 06:58:57 PM
Sorry all Masters of HLA,

The problem was caused by my missing the leading line:-

    program testRandom;

 ~~8~
Your SS (Stupid Student),
-hide2may
Title: Re: Problem in os.hhf
Post by: admin on November 24, 2008, 08:35:49 AM
Thanks David for your help.

Don't worry hide2may all may forget  :)
Title: Re: Problem in os.hhf
Post by: David on November 29, 2008, 04:59:46 PM
Quote
The problem was caused by my missing the leading line:-

Glad you found the cause ...

Your serendipity led to finding a real bug in the recent HIDE compile of HLA that might have otherwise gone undetected.

Great detective work ... Sherlock  ;)