Changeset 14692 in project


Ignore:
Timestamp:
05/18/09 07:56:12 (10 years ago)
Author:
Ivan Raikov
Message:

added repetition1 procedure

Location:
release/4/abnf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/abnf/abnf.scm

    r14691 r14692  
    4242          dquote htab lwsp octet sp vchar wsp
    4343          quoted-pair quoted-string
    44           concatenation alternatives range repetition repetition-n
     44          concatenation alternatives range
     45          repetition repetition1 repetition-n
    4546          optional-sequence
     47          set set-from-string
    4648          )
    4749
     
    7577;; Repetition (RFC 4234, Section 3.6)
    7678(define repetition lex:star)
     79
     80;; convenience function for positive closure
     81(define repetition1 lex:pos)
    7782
    7883;;  Specific repetition (RFC 4234, Section 3.7)
     
    168173(define char-set:quoted (char-set-complement (string->char-set "\\\"\r\n")))
    169174
     175;;;; Additional convenience procedures
     176
     177;; match any character from an SRFI-14 character set
     178(define set lex:set)
     179
     180;; match any character from a set defined as a string
     181(define (set-from-string s)
     182  (lex:set (string->char-set s)))
     183
    170184)
  • release/4/abnf/abnf.setup

    r14691 r14692  
    1717
    1818  ;; Assoc list with properties for your extension:
    19   '((version 1.0)
     19  '((version 1.1)
    2020    (documentation "abnf.html")
    2121    ))
Note: See TracChangeset for help on using the changeset viewer.