Parser for CMIS queries based on BNF grammar

For our CMIS server side implementation, I want to create a parser that will parse the request requests provided as input to the request method. CMIS defines a BNF grammar for query requests. I was wondering what would be the best way to generate this BNF parser?

Our implementation is in C #. CMIS queries are based on SQL syntax plus some predicates defined by CMIS.

+3


source to share


1 answer


Apache Chemistry OpenCMIS uses Antlr on the server side to parse, validate, and interpret cmisQL syntax. You can try to reuse the Antlr grammar defined in the Apache Chemistry OpenCMIS implementation to create your own C # parser with antlr3

OpenCMIS grammar files are available here (under Apache license)



+2


source







All Articles