oslo

Writing a parser with M, consume while not rule

I'm writing a HTML parser for my own amusement and I wanted to try out M. I base this work on the HTML 4.01 standard and in there it says Although the STYLE and SCRIPT elements use CDATA for their data model, for these elements, CDATA must be handled differently by user agents. Markup and entities must be treated as raw tex...

OSLO, ANTLR or other parser grammar, for parsing QUERY EXPRESSION

Greetings I'm working on a project that requires me to write queries in text form, then convert them to some easily processed nodes to be processed by some abiguous repository. Of everything there, the part I'm least interested is the part that converts the text to nodes. I'm hoping it's already done somewhere. Because I'm making stuff...

How can I create XSD files from M documents?

Does anyone know of a nice way to: produce XSD documents from an SQL Server Modeling Framework model consume conformant XML documents using that model and add directly into the DB created from the model? I can't see any obvious way from the current documentation, but I'm a newcomer, so I may have missed something. Thanks. ...

Recursive Syntax in Oslo

I'm writing my first DSL with Oslo and I am having a problem with a recursive syntax definition. The input has sections which can contain questions or other sections recursively (composite pattern) like this: Section: A Question: 1 Question: 2 Section: B Question: 1 End End My definition for a Section looks like this ...