diff options
author | colin <colin@cicadas.surf> | 2023-08-02 21:30:20 -0700 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2023-08-02 21:30:20 -0700 |
commit | b0213128f7c0cde618c0c3ca958c6b79f2de4b72 (patch) | |
tree | bbf2effb9207d7506bcc548fa728972d27376d48 /argot.lisp | |
parent | 5800a49934ab75be17f03af8c9a2243120a97339 (diff) |
Improved docgen
Diffstat (limited to 'argot.lisp')
-rw-r--r-- | argot.lisp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -133,7 +133,17 @@ and it returns VAR in that case." (terpri) (terpri) (loop :for (lhs pattern . more) :in parsed-rules :do (write-rule-doc lhs pattern) - (terpri))))) + (terpri)) + (terpri) + (princ "KEY: ") (terpri) + (princ "::TOKEN:: Any ole token") (terpri) + (princ "::EOF:: Explicitly match the end of the input") (terpri) + (princ "{GRAMMAR} Parse a sublist of tokens with GRAMMAR") (terpri) + (princ "(a|b|..) One of the alternavites a b ...") (terpri) + (princ "PATTERN+ One or more PATTERN") (terpri) + (princ "PATTERN* Zero or more PATTERN") (terpri) + (princ "<RULE> A nonterminal symbol - naming a parse rule") (terpri) + (princ "[OPT] Zero or one of OPT")))) `(progn (defvar ,name nil) (setf ,name (make-instance 'grammar |