Jump to content

Damitri

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Hey guys! I've been working on a scripting language for a bit, just for giggles.
What do you guys think of this example? Is it readable? Can you get what its doing right away?

% ZOMG Sample file
mov myVar,Dom::Int(9)
mov myString,Dom::String("Whats up pop? I'm ")
con myString,myVar
mov ax,myString
print //Prints 'Whats up pop? I'm 9'
% Test BOOST networking
mov myIP,Dom::String("19.18.102.242")
mov myNet,Dom::Net(myIP)
mov ax,myNet.Read(Dom::Int(1024))
print //Prints 1024 bytes from the stream

BTW: Dom is the actual namespace used in the C++ code

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It's readable/understandable... not sure that I'd use it for a scripting language since it feels a bit awkward.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
That kind of reminds me of assembly, however I'm not sure if the syntax is there. Its definitely readable and understandable, but I would probably never use it as a scripting language either, like WingedPanther.

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Its a hybrid model between (or it will be when done) assembler syntax and Basics ease of use.