Parsing question
- by j-t-s
Hi All
I have tried using several different parsers as advised by somebody but i don't believe that they'd be of any use for this particular situation.
I have a file that looks like this:
mylanguagename(main) {
OnLoad(protected) {
Display(img, text, link);
}
Canvas(public) {
Image img: "Images\my_image.png";
img.Name: "img";
img.Border: "None";
img.BackgroundColor: "Transparent";
img.Position: 10, 10;
Text text: "This is a multiline str#ning. The #n creates a new line.";
text.Name: text;
text.Position: 10, 25;
Link link: "Click here to enlarge img.";
link.Name: "link";
link.Position: 10, 60;
link.Event: link.Clicked;
}
link.Clicked(sender, link, protected) {
Link link: from sender;
Message.Display: "You clicked link.";
}
}
... and I need to be able to parse that code above, so and convert it to a Javascript equivelent, (or JScript).
Can somebody please help, or get me started in the right direction?
Thanks