From: morioka Date: Wed, 28 Aug 1996 18:11:29 +0000 (+0000) Subject: (std11-lexical-analyze): New function. X-Git-Tag: XEmacs-20_3-b6~48 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=82e89ff745f135ebad73456f2d4645bc37bed285;p=elisp%2Fapel.git (std11-lexical-analyze): New function. --- diff --git a/std11-parse.el b/std11-parse.el index 200008e..57d9353 100644 --- a/std11-parse.el +++ b/std11-parse.el @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko ;; Keywords: mail, news, RFC 822, STD 11 -;; Version: $Id: std11-parse.el,v 0.7 1996-08-28 18:07:03 morioka Exp $ +;; Version: $Id: std11-parse.el,v 0.8 1996-08-28 18:11:29 morioka Exp $ ;; This file is part of tl (Tiny Library). @@ -114,6 +114,24 @@ (substring str p)) ))) +(defun std11-lexical-analyze (str) + (let (dest ret) + (while (not (string-equal str "")) + (setq ret + (or (std11-analyze-quoted-string str) + (std11-analyze-domain-literal str) + (std11-analyze-comment str) + (std11-analyze-spaces str) + (std11-analyze-special str) + (std11-analyze-atom str) + '((error) . "") + )) + (setq dest (cons (car ret) dest)) + (setq str (cdr ret)) + ) + (nreverse dest) + )) + ;;; @ end ;;;