changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/lib/parse/pkg.lisp

changeset 698: 96958d3eb5b0
parent: 686748796f08
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 (require :sb-cltl2)
2 
3 (defpackage :parse/lex
4  (:nicknames :lex)
5  (:use :cl :cl-ppcre :std)
6  (:export
7  #:*string*
8  #:*length*
9  #:*index*
10  #:with-lexer-environment
11  #:consume
12  #:advance
13  #:unread
14  #:peek
15  #:advance-n
16  #:unread-n
17  #:consume-until
18  #:matcher-character
19  #:matcher-string
20  #:matcher-range
21  #:matcher-find
22  #:matcher-or
23  #:matcher-and
24  #:matcher-not
25  #:matcher-next
26  #:matcher-prev
27  #:matcher-any
28  #:make-matcher
29  #:define-matcher))
30 
31 (defpackage :parse/yacc
32  (:use :cl :std)
33  (:export :make-production :make-grammar :make-parser :parse-with-lexer
34  :define-grammar :define-parser
35  :yacc-compile-warning :conflict-warning :conflict-summary-warning
36  :yacc-runtime-error :yacc-parse-error :yacc-parse-error-terminal
37  :yacc-parse-error-value :yacc-parse-error-expected-terminals))
38 
39 (defpackage parse/bytes
40  (:use :cl :babel)
41  (:import-from :sb-cltl2
42  :variable-information)
43  (:import-from :std :with-gensyms :once-only
44  :ensure-cons :ignore-some-conditions :octet-vector :octet)
45  (:export :with-vector-parsing
46  :with-string-parsing
47  :with-octets-parsing
48  :eofp
49  :current
50  :peek
51  :eof-value
52  :pos
53  :advance
54  :advance*
55  :advance-to
56  :advance-to*
57  :skip
58  :skip*
59  :skip+
60  :skip?
61  :skip-until
62  :skip-while
63  :bind
64  :match
65  :match-i
66  :match?
67  :match-case
68  :match-i-case
69  :match-failed))
70 
71 (defpackage :parse/pratt
72  (:use :cl)
73  (:export :pratt-parser :parse :next-precedence :parse-prefix :parse-infix))
74 
75 (uiop:define-package :parse
76  (:use :cl :std)
77  (:use-reexport :parse/lex :parse/yacc))