diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-08-14 14:38:26 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-08-15 13:50:03 +0200 |
commit | 690ff4c3e44e7063ebde2557b7c0087ab720b894 (patch) | |
tree | 645cba5e6113b75bbd099f0517c97dac26e4eacb /doc/docbook-html-style.xsl.cmake.in | |
parent | 7c724251fd8c24e89dc8cb813eee20aa0a4ad793 (diff) |
Add initial support for parsing patterns into parse trees
Introduce a parser for patterns that generates a parse tree. The
language understood by the parser is:
pattern = '?'TERM
| '?'TERM '(' pattern (',' pattern)* ','? ')'
| WORD
| QUOTED-WORD
TERM = [0-9a-zA-Z-]
WORD = [0-9a-ZA-Z-.*^$\[\]_\\]
QUOTED_WORD = "..." # you know what I mean
This language is context free, which is a massive simplification
from aptitude's language, where ?foo(bar) could have two different
meanings depending on whether ?foo takes an argument or not.
Diffstat (limited to 'doc/docbook-html-style.xsl.cmake.in')
0 files changed, 0 insertions, 0 deletions