|
-
Jul 25th, 2001, 12:31 AM
#1
Thread Starter
Hyperactive Member
A NEW programming/script language
-
Jul 25th, 2001, 12:49 AM
#2
Thread Starter
Hyperactive Member
It is not a compilator (YET) it works like scripting host but it allows file operations, killfile functions and all that stuff which has been cut OUT of vbscript.
-
Jul 25th, 2001, 12:53 AM
#3
Fanatic Member
Cool Post when you have more stuff, sounds interesting.
Alcohol & calculus don't mix.
Never drink & derive.
-
Jul 25th, 2001, 12:55 AM
#4
Thread Starter
Hyperactive Member
I worked just 1 day on it. Yep im adding more stuff to it. Currently there are functions supported:
PRINT TO A CONSOLE
MAKE A MESSAGEBOX
WRITE TO A FILE
RESIZE A CONSOLE WINDOW
SLEEP
-
Jul 25th, 2001, 01:17 AM
#5
Thread Starter
Hyperactive Member
Code:
ENUMKBL
INPUT 07h0
C:\hello.txt
Hello World!!!
MOV MSG
A file hello.txt has been created in the disc C: It contains Hello World!
INPUT E?FILE
C:\hello.txt
MOV MSG
A file C:\hello.txt has been deleted on the disc C:
ET 0001
ET 0010
ET 0011
Kbl is a bit longer than VB. The things above and below are completely the same. I have added time/date operations (require updated version of kbl) and a kill file operation
VB Code:
Open "C:\hello.txt" For Binary As #1
Put #1, , "Hello World!"
Close #1
MsgBox "A file hello.txt has been created in the disc C: It contains Hello World!"
Kill "C:\hello.txt"
MsgBox "A file C:\hello.txt has been deleted on the disc C:"
MsgBox Time
MsgBox Date
MsgBox Now
-
Jul 25th, 2001, 02:16 AM
#6
Thread Starter
Hyperactive Member
Variable Declarations
I have inserted a variable declaration and output!
Code:
SUBKBL
VAR p8h0
pCOM
This is a test variable of the name pCOM
INT p8h0
pCOM
MOVINT &H008
MOVINT &H007
;INT DISRUPT?
;This function will destroy ALL variables ^^^
-
Jul 25th, 2001, 06:23 AM
#7
Thread Starter
Hyperactive Member
-
Jul 26th, 2001, 12:41 AM
#8
Thread Starter
Hyperactive Member
Anyone has any comments?
-
Jul 26th, 2001, 12:54 AM
#9
Fanatic Member
Did you base it on assembly, it looks a lot like it.
Alcohol & calculus don't mix.
Never drink & derive.
-
Jul 26th, 2001, 12:58 AM
#10
Thread Starter
Hyperactive Member
No I did not base it on anything. I just saw the functions there and i liked MOV and INT to i decided to put it there.
Here is assembly code compared to KLB: Hello world:
Code:
jmp start
Message1 db "Hello World!$"
start:
mov ah, 09h
mov dx, offset Message1
int 21h
mov ax, 4c00h
int 21h
Code:
SUBKBL
MOV P
Hello Word
Assembly is muuuuch harder
-
Jul 26th, 2001, 06:35 AM
#11
And VB is muuuuch easier still: MsgBox "Hello World"
-
Jul 26th, 2001, 11:57 PM
#12
Thread Starter
Hyperactive Member
Yes agree....
Msgbox Is easy
but this is a SCRIPTING language while VISUAL BASIC isnt
u still can compare it to VBScript but VBScript is soooooo empty. No file/registry operations.
-
Aug 4th, 2001, 04:53 AM
#13
Lively Member
i don't agree
Your scripting language sounds good, but it looks very hard to understand for newbies, since you put some numbers instead of a function name full-explicit, it will be hard to understand...
Anyway, i post this subject because VBScript DOES use registry/file operations ( see WSH objects )...
Why did you say it didn't ???
All what you dream is codable - DevMaX
-
Aug 5th, 2001, 08:55 PM
#14
Thread Starter
Hyperactive Member
Hmmm i though it didnt.
The numbers are just an example of the first release. I have currently completely recreated my language + dev envionment and compiler . I also added registration of OCX and DLL's on the machine.
My language is pretty simple. Here: This is a redone NEW version. No numbers 
Code:
DEFINE TLB[me(cap)];[Great Western Pages Installation]
DEFINECLNG[TYPECLASS];[H06];[H02]
DEFINECLNG[font];[Tahoma]
DEFINECLNG[textsize];[12]
MSGID @RET[It looks like you are running Great Western Pages the first time. Great Western Pages requries your computer to install components to continue. Would you like to start setup?];[Great Western Pages Components]
MOV <%PR%>[Please wait while the program performs registration of components]
MOV <%PR%>[Please do not shutdown your computer while this happens]
@STATUSCNT[200];[100];[ timeout%]
DEFINECLNG[fullbreak]
DEFINE TLB[reg(tlb)];[tmr42.tlb]
DEFINECLNG[fullbreak]
DEFINE TLB[reg(ocX)];[Msflxgrd.ocx]
DEFINE TLB[reg(tlb)];[vbalNCSM6.dll]
DEFINE TLB[reg(tlb)];[SSubTmr6.dll]
MOV <%PR%>[Registration of Type Liblaries is complete!]
MSGID @RET[Installation is complete. Would you like to start Great Western Pages CD now?];[Great Western Pages Components]
@SHELLPROG[gwpmain];[H02]
This code just displayes messages and registers ocx and dlls on the machine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|