Posted 18 years ago
by Dave Sparks
So far your component has been working very well for these sometimes very odd languages I work with. I have all the syntax highlighting and text-editing features I could ever ask for. Now, I'd like to go one step further.
One of the languages used is an extremely simple C-style structure for defining groups of objects.
[code]class Name : BaseName
{
propertyA = 1;
propertyB = "string";
propertyC[] = {"string1","string2","string3"};
class Subclass : AnotherClass
{
etc.....
};
};[/code]
I have the Dynamic Language XML working flawlessly. What I'd like to do now is create a tabbed form: Design on one tab and Code on the other. I didnt read much into semantic parsing before I started and now I wish I would have.
I want to create a graphical designer (like UML) in which editing on the Design tab will reflect changes on the text tab and vice-versa.
The only real trick is that I need to know which "Class" I am in at any moment because the properties are not dynamic. Each class type (defined by name) has a unique and strictly defined list of properties to choose from. If I misspell a property or use the wrong one in a class, the engine this code is used in will continue without error IIRC. So I thought a graphical editor with predifned shapes and properties would help in editing. Coupled intelliprompt properties when hand editing and with the "wavy lines" for typographical errors, this would enhance production about 200-fold (Most editing is currently done by hand in notepad-like applications).
What is my best course of action from here? Should I try using the semantic parser on the Main UI thread? Do I make it multi-threaded? Do I scrap the dynamic language and use something else?
What have others done?
[Modified at 03/22/2007 11:34 AM]
One of the languages used is an extremely simple C-style structure for defining groups of objects.
[code]class Name : BaseName
{
propertyA = 1;
propertyB = "string";
propertyC[] = {"string1","string2","string3"};
class Subclass : AnotherClass
{
etc.....
};
};[/code]
I have the Dynamic Language XML working flawlessly. What I'd like to do now is create a tabbed form: Design on one tab and Code on the other. I didnt read much into semantic parsing before I started and now I wish I would have.
I want to create a graphical designer (like UML) in which editing on the Design tab will reflect changes on the text tab and vice-versa.
The only real trick is that I need to know which "Class" I am in at any moment because the properties are not dynamic. Each class type (defined by name) has a unique and strictly defined list of properties to choose from. If I misspell a property or use the wrong one in a class, the engine this code is used in will continue without error IIRC. So I thought a graphical editor with predifned shapes and properties would help in editing. Coupled intelliprompt properties when hand editing and with the "wavy lines" for typographical errors, this would enhance production about 200-fold (Most editing is currently done by hand in notepad-like applications).
What is my best course of action from here? Should I try using the semantic parser on the Main UI thread? Do I make it multi-threaded? Do I scrap the dynamic language and use something else?
What have others done?
[Modified at 03/22/2007 11:34 AM]