chiark / gitweb /
Daily work in progress.
[sod] / src / pset-parse.lisp
index be7984e91fccca8d60b5de4ab93fb0602e48530d..0bc4680072ce2f5c607dd533b720ff30d8178f66 100644 (file)
@@ -23,6 +23,8 @@
 ;;; along with SOD; if not, write to the Free Software Foundation,
 ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+(in-package #:sod)
+
 ;;;--------------------------------------------------------------------------
 ;;; The expression parser.
 
@@ -127,14 +129,14 @@ (defun parse-property (scanner pset)
 
 (export 'parse-property-set)
 (defun parse-property-set (scanner)
-  "Parse an optional property set from the SCANNER and return it, or `nil'."
-  ;; property-set ::= [`[' property-list `]']
+  "Parse an optional property set from the SCANNER and return it."
+  ;; property-set ::= `[' property-list `]'
   (with-parser-context (token-scanner-context :scanner scanner)
-    (parse (? (seq (#\[
-                   (pset (many (pset (make-property-set) pset)
-                           (parse-property scanner pset)
-                           #\,))
-                   #\])
-               pset)))))
+    (parse (seq (#\[
+                (pset (many (pset (make-property-set) pset)
+                        (parse-property scanner pset)
+                        #\,))
+                #\])
+            pset))))
 
 ;;;----- That's all, folks --------------------------------------------------