0 registered members (),
984
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
scripting language: sequential
#164836
11/01/07 00:07
11/01/07 00:07
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
Hey, I spent the last few hours to develop this small scripting language, which I call "Sequential". Website with information You can download the parser including a small sample from this website, the source code is also available (written in C#). The language supports simple functions with parameters as well as if/else conditions. A full reference of the language can be found on the website. I'd be glad to hear some feedback and what you think about this small approach to code a parser
Your friendly mod is at your service.
|
|
|
Re: scripting language: sequential
[Re: Michael_Schwarz]
#164838
11/09/07 17:37
11/09/07 17:37
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
Thanks. Update: + Added support for functions + Added mathematical functions such as add, sub, div and mul * Fixed a bug with if/else that allowed the user to begin a new if condition inside an existing one ReferenceDownload Binaries + ExamplesDownload SourcesFeedback is welcome
Your friendly mod is at your service.
|
|
|
Re: scripting language: sequential
[Re: MichaelGale]
#164839
11/16/07 15:53
11/16/07 15:53
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
Added class support: Code:
echo Starting
.myclass: echo Constructor ret blub: echo Function ret .end
echo Middle
mov x new(myclass) jmp x:blub
echo End
; Output: ; Starting ; Middle ; Constructor ; Function ; End
I'll upload the new binaries/sources and an updated documentation later today or tomorrow
Your friendly mod is at your service.
|
|
|
Re: scripting language: sequential
[Re: Ambassador]
#164843
11/18/07 16:43
11/18/07 16:43
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
Thanks =) Last night I rewrote the parser a bit, all native commands are imported dynamically from dll's now. Added a ftp library as well: Code:
ftp_open localhost anonymous anonymous ftp_status $e
if $e != 230 echo Login failed exit 0 else echo Login successful end
Your friendly mod is at your service.
|
|
|
Re: scripting language: sequential
[Re: padrino]
#164845
11/22/07 23:19
11/22/07 23:19
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
'small' update: Code:
.myclass set this:x 50 set this:y 70 ret public:ToString: echo x ret .end
set x new(myclass) set x:z 30 jmp x:ToString
exit 0
You can set and work with class variables now. The example above will show the following output: Quote:
Instance of 'myclass' (`x`='50' `y`='70' `z`='30' )
Classes can inherit from other classes now:
Code:
.mother ret public:ToString: echo x ret .end
.child:mother set this:x 50 set this:y 30
ret .end
set x new(child) jmp x:ToString
The example above will show the following output:
Quote:
Instance of 'child' (`x`='50' `y`='30' )
Last edited by MichaelFriedrich; 11/22/07 23:19.
Your friendly mod is at your service.
|
|
|
|