Results 1 to 14 of 14

Thread: A NEW programming/script language

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Wink A NEW programming/script language

    Hello i have just created my own first programming language. It is called KBL and is very simple and yet only contains five commands cause i ddidnt have much tiem to work with it. (I will add more commands soon

    Im sending a program and 3 sample kbl files. (You can create your own)

    Here is an example of my KBL language program

    Code:
    SUBKBL;MOV
    MOV MSG
    Hello!!!!
    It will display a mesage box with a text Hello. A ;MOV function will show debugger window.

    Could anyone test my KBL execution file please? It requies a richtextbox control for VB6

    Any ideas you have?

    Thanks for help,
    VS.NET 2003

    Need to email me?

  2. #2

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    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.
    VS.NET 2003

    Need to email me?

  3. #3
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Cool Post when you have more stuff, sounds interesting.
    Alcohol & calculus don't mix.
    Never drink & derive.

  4. #4

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Wink

    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
    VS.NET 2003

    Need to email me?

  5. #5

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    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:
    1. Open "C:\hello.txt" For Binary As #1
    2. Put #1, , "Hello World!"
    3. Close #1
    4. MsgBox "A file hello.txt has been created in the disc C: It contains Hello World!"
    5. Kill "C:\hello.txt"
    6. MsgBox "A file C:\hello.txt has been deleted on the disc C:"
    7. MsgBox Time
    8. MsgBox Date
    9. MsgBox Now
    VS.NET 2003

    Need to email me?

  6. #6

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Exclamation

    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 ^^^
    VS.NET 2003

    Need to email me?

  7. #7

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Unhappy

    Anyone help?
    VS.NET 2003

    Need to email me?

  8. #8

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Anyone has any comments?
    VS.NET 2003

    Need to email me?

  9. #9
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Did you base it on assembly, it looks a lot like it.
    Alcohol & calculus don't mix.
    Never drink & derive.

  10. #10

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    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
    VS.NET 2003

    Need to email me?

  11. #11
    j2k
    Guest
    And VB is muuuuch easier still: MsgBox "Hello World"

  12. #12

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Talking

    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.
    VS.NET 2003

    Need to email me?

  13. #13
    Lively Member devmax's Avatar
    Join Date
    Mar 2001
    Posts
    67

    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

  14. #14

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    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.
    VS.NET 2003

    Need to email me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width