Project RiL Script Editor

Published August 16, 2007
Advertisement
Wow, damn? Time flys by so fast now. I haven't really noticed it, but now it's getting to me. It seemed like yesterday that I was a freshman in high school, now I'm a senior :\.

I started work on an editor for RiL, and it's going relatively well, been having some fun with RegEx. I'm starting to get the hang of it; I've dabbled with it before, but I've never done anything with Negative lookbehind, Negative lookahead, etc.

So far I've got a nice tab system going as well as some basic syntax highlighting(keywords, single line comments, strings). I've still got loads of work to do though, gotta do some .NET Reflection for the auto-complete. I also need a project manager, which will have a tree-view to the left. It's getting there, but I'd say I'm ~30% done.

Here's a screenie.

RiL Editor

Believe it or not, depending on the file size, it takes the editor a while to parse each file for highlighting. After the file is loaded it does the highlighting per line after the user types. I think I'm gonna end up threading the highlighter, so the user doesn't have to wait when they open a script for editing.

Comments?
Previous Entry Shaders are fun
Next Entry *creeeeaaaaaakkk*
0 likes 3 comments

Comments

choffstein
Why not, instead of 'hard coding' keywords and colors, create a file, that allows the user to define keywords, strings, et cetera. In fact, they could even give you the regex code -- which would mean your system could parse C, C++, Java, Ruby, Lisp, O'Caml, etc flexibly.
August 16, 2007 06:53 AM
bladerunner627
Quote:Original post by visage
Why not, instead of 'hard coding' keywords and colors, create a file, that allows the user to define keywords, strings, et cetera. In fact, they could even give you the regex code -- which would mean your system could parse C, C++, Java, Ruby, Lisp, O'Caml, etc flexibly.


Because this is a tool for RiL which is C# and the scripts will most likely only be C#.
August 16, 2007 08:04 AM
CadeF
RiL isnt entirely in C#, parts are in C++ where the speed benefit is higher than the cost of interop. The scripts themselves can be any .NET language, it's just that since the most well known .NET language is C#, we've chosen to make the script editor do C#.
August 16, 2007 06:09 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Boo!

1539 views

Group blog

1044 views

Easy Usage

1063 views

Angel Script

924 views

My game idea

941 views

Lightmaps

912 views

Yay BSPs!

913 views
Advertisement