T
T. Sawyer
OKay this is kind of an odd one, so I thought others might be interested. I have developed a new "meta-language" that uses an abstract ascii-art template syntax. I'm sure you have all seen ascii diagrams like this before:
+---------------+
| foo.bar |
+---------------+
| [click.btn] |
+---------------+
This is a very simplistic example, but I use something like this to generate user interface. Anyway, I'm currently converting the above diagram into an abstract object model by brute force. That is to say I wrote my own parser and I build a tree like structure with an object hierarchy, which is then used to produce other markup, like html.
So here's the deal. I don't know a lot about standard parsers. I'm wondering if this could be handled better by somthing like yacc? or others?
Thanks,
T.
+---------------+
| foo.bar |
+---------------+
| [click.btn] |
+---------------+
This is a very simplistic example, but I use something like this to generate user interface. Anyway, I'm currently converting the above diagram into an abstract object model by brute force. That is to say I wrote my own parser and I build a tree like structure with an object hierarchy, which is then used to produce other markup, like html.
So here's the deal. I don't know a lot about standard parsers. I'm wondering if this could be handled better by somthing like yacc? or others?
Thanks,
T.