-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|523|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
Phoenix
Created : 26 April 2007
Edited : 26 April 2007

Scripting Language

Trying to finish a dream I've had for a very long time

About a week ago I started creating a scripting lanugage in C#, to see if I could. It's been a big dream ever since I started programming, and I've read everywhere that you need lexers and analyzers and all kinds of humbug to create one, so I wasn't very optimistic about my success. But it seems like you don't need all those things, since I'm progressing just fine with just regular regex.

Of course, I don't know what impact this will have on the speed, but I'll try not to think much about that for now, I don't want to destroy the great programming motivation I've gotten. I don't care much about parsing speed anyway, since I won't be real time parsing scripts.

At the moment it can handle variables, constants, comments, and multiple white spaces, not many "Wow!" features (yet!). But I think I've done the hardest bits, or at least, I hope I have

I'll post my progress and milestones here, in my very thin blog.

Hmm... It's 1 am, I should probably go to sleep.

 

Comments


Thursday, 26 April 2007, 17:43
JL235
First, you should get it going. Second, you should get it going fast.

I wouldn't worry about too much about if your doing it the right way or what, but more learn form the experience and then improve upon your current and already implimented system in the future.

Finally, aren't regular expressions amazing!
Thursday, 26 April 2007, 21:30
power mousey
hey Diablo,

I downloaded a demo of VMBasic.

Its a scripting language written purely
in Pure Basic (sorry, for the word play ).

Go for it, Diablo.

cheers
power mousey
Thursday, 26 April 2007, 21:35
JL235
VMBasic? Do you mean Vintage Manager Basic? Personally, I don't need any software to help with the management of my wine.
Friday, 27 April 2007, 02:41
power mousey
hahaa

cool. Use VMBasic to manage your wine too.

basic.mindteq.com/Details/VMBasic.html


yet, I like some Zima now and then. True.
Friday, 27 April 2007, 02:54
Phoenix
Yep, regular expressions are amazing! But they can become very hard to read when they grow big.
Friday, 27 April 2007, 03:02
power mousey
Yeah, after a few bottles of the Zima.


but in any case,
that is certainly true.
Friday, 27 April 2007, 16:34
Phoenix
And that's the irritating part of complicated regex - I've now tried to nail a stupid spacing bug for an hour, and finally saw that I had written a ? instead of a +. But it's solved now, at least
Friday, 27 April 2007, 19:02
power mousey
yeah, I don't like all those complicated
symbols. I'll use them from time to time.
But sometimes I get lost when I go back to read them
again...sometimes.
I know, I even comment. Sometimes too verbosic.
I know, I know. I'm so prolific a lot.
Need to tone it down...at times