Important information: this site is currently scheduled to go offline indefinitely by end of the year.

MexScript

Coders and would-be coders alike, this is the place to talk about programming.
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

please note i said TEST ide, this is by no means a product, but a visual of how the debugger and scriptor works.
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Post by Dinoguy1000 »

Eh? I knew that... I was referring to the last image, where it says
"4: Unknown Command: x
Test Compile Completed"
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

New stuff, different look, also added breakpoints.
Image
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

I long for the day I can get rid of my MexScriptor! :D This is looking good!
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Post by Dinoguy1000 »

Nice! 8D I was wondering where you'd disappeared to...
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

For Get Command

Removed Types

Code: Select all

Long
Int
ThreeByte
Byte
All Types as Followed

Code: Select all

LInt8
LInt16
LInt32
LInt24
LInt64
LUInt8
LUInt16
LUInt24
LUInt32
LUInt64
BInt8
BInt16
BInt24
BInt32
BInt64
BUInt8
BUInt16
BUInt24
BUInt32
BUInt64
String
ShortString
LongString
Single
Double
Created Alias for backwards compatibility

Code: Select all

Long -> LInt32
Int -> LInt16
Byte -> LUint8
ThreeByte -> LInt24
Alias's take an extra lookup time, so in theory they are slower but not noticably

Types on Debate

Code: Select all

WideString
LongWideString
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Really NICE!
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

some changes

removed types (changed to Alias')

Code: Select all

LInt8
BInt8
LUInt8
BUInt8
added types

Code: Select all

Int8
UInt8
Mainly because 8bit doesn't have endianess :)
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

removed types (changed to alias')

Code: Select all

Single
Double
added types

Code: Select all

LSingle
LDouble
BSingle
BDouble
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Rahly wrote: Mainly because 8bit doesn't have endianess :)
LOL.
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Post by Dinoguy1000 »

Yet Another Reason (YAR!) why endianness still mystifies me... :P
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Rahly
VVIP member
VVIP member
Posts: 411
Joined: Thu Aug 05, 2004 10:17 am
Been thanked: 1 time

Post by Rahly »

Internal types and their conversion in expressions

Code: Select all

string + string = string
string + int    = int
string + long   = long
string + uint   = uint
string + ulong  = ulong
string + float  = float

int    + string = int
int    + int    = int
int    + long   = long
int    + uint   = long
int    + ulong  = ulong
int    + float  = float
 
long   + string = long
long   + int    = long
long   + long   = long
long   + uint   = long
long   + ulong  = ulong
long   + float  = float

uint   + string = uint
uint   + int    = long
uint   + long   = long
uint   + uint   = uint
uint   + ulong  = ulong
uint   + float  = float

ulong  + string = ulong
ulong  + int    = long
ulong  + long   = ulong
ulong  + uint   = ulong
ulong  + ulong  = ulong
ulong  + float  = float

float  + string = float
float  + int    = float
float  + long   = float
float  + uint   = float
float  + ulong  = float
float  + float  = float
if undesirable, new command added

Code: Select all

CONVERT VariableName Type
This command allows the promotion of a variable to a specific type

P.S. Forgot to mention that strings will be converted to an integer, unlike most string->int converters in languages, this acts more like in scripting languages (perl/php) where "103 hello" is actually 103 integer instead of an error or 0
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
Post Reply