cql-parser
v1.0.3
Published
A library for parsing a subset of the Confluence Query Language
Downloads
5
Readme
CQL Parser
a parser for a subset of the Confluence Query Language
CQL Grammar
- CQLTerm := <SubTerm>("or"<SubTerm>)*
- SubTerm :=<UnopTerm>("and"<UnopTerm>)*
- UnopTerm := ("not")?<CQLAtom>
- CQLAtom := <CQLSingleAtom> | <CQLListAtom> | "(" <CQLTerm> ")"
- CQLSingleAtom := <Field><CQL_STRING_OPERATORS>"<word>"
- Field := "ancestor" | "creator" | "label" | "parent" | "space" | "title"
- CQL_STRING_OPERATORS := "=" | "!=" | "~" | "!~"
- CQLListAtom := <Field><CQL_List_Operators><list>
- list := "("<list1>
- list1 := <word> | <word><restList>
- restList := ")" | ","<list1>