[previous] [up] [next]     [contents] [index]
Next: Command-line Parsing Up: MzLib Libraries Previous: MzLib Libraries

Awk

Files: awk.ss, awkc.ss

This library defines the awk macro from Scsh:

  (awk next-record-expr
       (record field-variable  tex2html_wrap_inline12550 )
       counter-variable/optional
       ((state-variable init-expr)  tex2html_wrap_inline12550 )
       continue-variable/optional
    clause  tex2html_wrap_inline12550 )

counter-variable/optional is either empty or: variable

continue-variable/optional is either empty or: variable

clause is one of: (test body-expr tex2html_wrap_inline12552 ) (test => procedure-expr) (/ regexp-str / (variable-or-false tex2html_wrap_inline12552 ) body-expr tex2html_wrap_inline12552 ) (range exclusive-start-test exclusive-stop-test body-expr tex2html_wrap_inline12552 ) (:range inclusive-start-test exclusive-stop-test body-expr tex2html_wrap_inline12552 ) (range: exclusive-start-test inclusive-stop-test body-expr tex2html_wrap_inline12552 ) (:range: inclusive-start-test inclusive-inclusive-stop-test body-expr tex2html_wrap_inline12552 ) (else body-expr tex2html_wrap_inline12552 ) (after body-expr tex2html_wrap_inline12552 )

test is one of: integer regexp-str expr

variable-or-false is one of: variable #f

For detailed information about awk, see Olin Shivers's Scsh Reference Manual. In addition to awk, the Scsh-compatible procedures match:start, match:end, match:substring, and regexp-exec are defined. These match: procedures must be used to extract match information in a regular expression clause when using the => form.



PLT