flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > More info with 'Unexpected end of file error' ?

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 07 Aug 2004, 00:36
Would it be possible to add additional information when getting an 'Unexpected end of file error', like a marro definition that caused the error and the line where that macro was used?
MadMatt
Post 07 Aug 2004, 00:36
View user's profile Send private message Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 07 Aug 2004, 13:13
Yeah, IMO that would be anice featuer, but hard to implement in a "correct" way, I think one way could be eg, counting the "{" and "}" and say something (in addition to the unexpected oef like "{ at line # appears to be unmatched"
Post 07 Aug 2004, 13:13
View user's profile Send private message Visit poster's website Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 07 Aug 2004, 15:19
I thought that compiler remembers what macro exactly he processes now.
Post 07 Aug 2004, 15:19
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 07 Aug 2004, 17:53
Scientica:
Hard to implement? Just keep a record of which file you are processing, and current line in that file, and when an error occurs, simply print out the current informatoin. BTW, I got the error because I was missing an 'end if' in an 'if, else, end if' construct. One other suggestion I forgot to mention in my first post, would it be possible to give a total number of lines processed in an assembly project? This shouldn't be real hard to do.
Post 07 Aug 2004, 17:53
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 07 Aug 2004, 17:56
madmatt wrote:
One other suggestion I forgot to mention in my first post, would it be possible to give a total number of lines processed in an assembly project? This shouldn't be real hard to do.

It is implemented in Fresh. Smile
Post 07 Aug 2004, 17:56
View user's profile Send private message Visit poster's website Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 07 Aug 2004, 18:05
Try to assemble this:
Code:
macro a [b] {
 if used c
  common
   db c
 end if
}

a s,d    

when writing
Code:
a s    

it's all right, this too
Code:
macro a [b] {
 common
  if used c
   db c
  end if
}

a s,d    
Post 07 Aug 2004, 18:05
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 08 Aug 2004, 21:35
decard:
Hey, fresh assmbly IDE is lookin' pretty good!, especially building a GUI inteface for assembly. I'll have to play around with it more to see what there is to see. But so far, I like what I see!
Post 08 Aug 2004, 21:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.