flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > For my compiler - keyword end style


If keyword is ended with
endif
50%
 50%  [ 11 ]
end if
27%
 27%  [ 6 ]
null vote (for me)
22%
 22%  [ 5 ]
Total Votes : 22

Author
Thread Post new topic Reply to topic
Plue



Joined: 15 Dec 2005
Posts: 151
Plue
For my BASIC-like compiler (outputs to fasm) I wonder what style people like out of these two: split or joined block ending keywords.

(Sorry, no other options like curly braces Twisted Evil .)

_________________
Roses are red
Violets are blue
Some poems rhyme
And some don't.
Post 30 Apr 2007, 20:40
View user's profile Send private message Reply with quote
Solidus



Joined: 07 Nov 2006
Posts: 8
Location: Australia
Solidus
I vote for matching braces.
Post 01 May 2007, 10:15
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
"end if"
more readable, ... I guess
Post 01 May 2007, 12:34
View user's profile Send private message Reply with quote
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Chewy509
I'm use to ENDIF (but I started BASIC back before DOS 2 was released).
Post 03 May 2007, 00:58
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
ENDIF - "end if" is just too much like English, and slightly ugly to match. BASIC is pretty ugly in any case.
Post 03 May 2007, 08:49
View user's profile Send private message Visit poster's website Reply with quote
Plue



Joined: 15 Dec 2005
Posts: 151
Plue
I have changed it from end if to endif now. Actually end if is very easy to compile because you only have one follow token ("END") and not a new follow token ("ENDSUB", "ENDFUNCTION") for every construct.
Post 09 May 2007, 09:51
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: behind the arc
Picnic
endif, i like it better, also fi is nice (just an idea)
Post 09 Aug 2007, 17:20
View user's profile Send private message Reply with quote
f14t



Joined: 27 Sep 2006
Posts: 36
f14t
do not use anything (Python way) this will save a lot many lines in source file.
Post 16 Aug 2007, 11:20
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Python identantion guided if is really the best! Very Happy
Post 18 Aug 2007, 14:50
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.