Jump to content
Sign in to follow this  
Guest wild

autoit free-format

Recommended Posts

Guest wild

please make autoit free-format like in kixtart for example

IF @PRIV="ADMIN" DISPLAY "ADMIN.TXT" ELSE DISPLAY "USER.TXT" ENDIF

is equivalent to

If @PRIV = "admin"

Display "ADMIN.TXT"

Else

Display "user.txt"

Endif

or add a symbol ":" like VBScript

If x = 4 Then : y = 1 : Else : y = 0 : Endif

is equivalent to

If x = 4 Then

y = 1

Else

y = 0

Endif

Edited by wild

Share this post


Link to post
Share on other sites
Guest wild

what preprocessor changing the ':' to '\n' because '\n' terminate a statement

Share this post


Link to post
Share on other sites
tylo

Yep, the ':' thing should be easy. The Lexer would only need to pass '\n' to the parser whenever it scans a ':' or a '\n' in the input file (outside strings and comments of course).


blub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×