cql-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i cql-parser

Weekly Downloads

232

Version

1.0.3

License

ISC

Unpacked Size

421 kB

Total Files

49

Last publish

Collaborators

  • m-mafeni