Parsing question
Posted
by j-t-s
on Stack Overflow
See other posts from Stack Overflow
or by j-t-s
Published on 2010-03-13T11:43:28Z
Indexed on
2010/03/13
11:45 UTC
Read the original article
Hit count: 252
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
© Stack Overflow or respective owner