Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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

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
×
×
  • Create New...