Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (57 sloc) 2.047 kb
124c97c Initial import.
Volkan YAZICI authored
1 ;;; Copyright (c) 2007, Volkan YAZICI <yazicivo@ttnet.net.tr>
2 ;;; All rights reserved.
3
4 ;;; Redistribution and use in source and binary forms, with or without
5 ;;; modification, are permitted provided that the following conditions
6 ;;; are met:
7
8 ;;; - Redistributions of source code must retain the above copyright
9 ;;; notice, this list of conditions and the following disclaimer.
10 ;;; - Redistributions in binary form must reproduce the above
11 ;;; copyright notice, this list of conditions and the following
12 ;;; disclaimer in the documentation and/or other materials provided
13 ;;; with the distribution.
14
15 ;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
16 ;;; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
17 ;;; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 ;;; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 ;;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 ;;; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 ;;; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 ;;; TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 ;;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24 ;;; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
25 ;;; TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
26 ;;; THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 ;;; SUCH DAMAGE.
28
29 (in-package :cl-user)
30
31 (defpackage :meta-sexp
32 (:documentation "LL(1) parser generator in META using s-expressions.")
33 (:use :cl :cl-utilities)
34 (:export :defatom
35 :defrule
36 :parser-context
37 :parser-context-error
38 :make-char-accum
39 :char-accum-push
40 :reset-char-accum
41 :make-list-accum
42 :list-accum-push
43 :reset-list-accum
44 :compile-grammar
45 :grammar-error
46 :meta
47 ;; Builtin Type-Checkers
48 :alnum?
49 :alpha?
50 :ascii?
51 :bit?
52 :digit?
53 :extended?
54 :graphic?
55 :lower?
56 :newline?
57 :space?
58 :tab?
59 :upper?
60 :white-space?
61 ;; Builtin Rules
62 :lwsp?))
Something went wrong with that request. Please try again.