The clawk Reference Manual

This is the clawk Reference Manual, version 4, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:41:10 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 clawk

Common Lisp AWK

Maintainer

Zach Beane <>

Author

Michael Parker <>

License

BSD-style

Version

4

Dependency

regex (system).

Source

clawk.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 clawk/clawk.asd

Source

clawk.asd.

Parent Component

clawk (system).

ASDF Systems

clawk.


3.1.2 clawk/packages.lisp

Source

clawk.asd.

Parent Component

clawk (system).

Packages

3.1.3 clawk/clawk.lisp

Dependency

packages.lisp (file).

Source

clawk.asd.

Parent Component

clawk (system).

Public Interface
Internals

3.1.4 clawk/clawktest.lisp

Dependencies
Source

clawk.asd.

Parent Component

clawk (system).

Internals

3.2 Static


3.2.1 clawk/clawk.system

Source

clawk.asd.

Parent Component

clawk (system).


3.2.2 clawk/clawk.translations

Source

clawk.asd.

Parent Component

clawk (system).


3.2.3 clawk/emp.data

Source

clawk.asd.

Parent Component

clawk (system).


3.2.4 clawk/license.txt

Source

clawk.asd.

Parent Component

clawk (system).


4 Packages

Packages are listed by definition order.


4.1 clawk-user

Source

packages.lisp.

Use List

4.2 clawk-test

Source

packages.lisp.

Use List
Internals

4.3 clawk

Source

packages.lisp.

Use List
  • common-lisp.
  • regex.
Used By List
Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *curfile*
Package

clawk.

Source

clawk.lisp.

Special Variable: *curline*
Package

clawk.

Source

clawk.lisp.

Special Variable: *fields*
Package

clawk.

Source

clawk.lisp.

Special Variable: *fnr*
Package

clawk.

Source

clawk.lisp.

Special Variable: *fs*
Package

clawk.

Source

clawk.lisp.

Special Variable: *last-successful-match*
Package

clawk.

Source

clawk.lisp.

Special Variable: *nf*
Package

clawk.

Source

clawk.lisp.

Special Variable: *nr*
Package

clawk.

Source

clawk.lisp.

Special Variable: *regs*
Package

clawk.

Source

clawk.lisp.

Special Variable: *rend*
Package

clawk.

Source

clawk.lisp.

Special Variable: *rlength*
Package

clawk.

Source

clawk.lisp.

Special Variable: *rstart*
Package

clawk.

Source

clawk.lisp.

Special Variable: *subsep*
Package

clawk.

Source

clawk.lisp.


5.1.2 Symbol macros

Symbol Macro: $#0
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#1
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#10
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#11
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#12
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#13
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#14
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#15
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#16
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#17
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#18
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#19
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#2
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#20
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#3
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#4
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#5
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#6
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#7
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#8
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#9
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $#nf
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $0
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $1
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $10
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $11
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $12
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $13
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $14
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $15
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $16
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $17
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $18
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $19
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $2
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $20
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $3
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $4
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $5
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $6
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $7
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $8
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $9
Package

clawk.

Source

clawk.lisp.

Symbol Macro: $nf
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#0
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#1
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#10
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#11
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#12
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#13
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#14
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#15
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#16
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#17
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#18
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#19
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#2
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#20
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#3
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#4
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#5
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#6
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#7
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#8
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %#9
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %0
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %1
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %10
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %11
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %12
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %13
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %14
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %15
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %16
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %17
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %18
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %19
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %2
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %20
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %3
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %4
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %5
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %6
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %7
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %8
Package

clawk.

Source

clawk.lisp.

Symbol Macro: %9
Package

clawk.

Source

clawk.lisp.


5.1.3 Macros

Macro: $aref (tbl index &rest other-indices)
Package

clawk.

Source

clawk.lisp.

Macro: $for ((keyvar in tbl) &rest body)
Package

clawk.

Source

clawk.lisp.

Macro: defawk (name (&rest parms) &rest clauses)
Package

clawk.

Source

clawk.lisp.

Macro: for-file-fields ((path &optional fieldspec strmvar linevar) &rest body)
Package

clawk.

Source

clawk.lisp.

Macro: for-file-lines ((path &optional streamvar linevar) &rest body)
Package

clawk.

Source

clawk.lisp.

Macro: for-stream-fields ((stream &optional fieldspec strmvar linevar) &rest body)
Package

clawk.

Source

clawk.lisp.

Macro: for-stream-lines ((stream &optional strmvar linevar) &rest body)
Package

clawk.

Source

clawk.lisp.

Macro: if-match ((pat str &optional pos) consequent alternative)

Match the pattern to the string, and if it matches, bind the *RSTART*, *RLENGTH*, and *REGS* and evaluate the consequent, otherwise evaluate the alternative.

Package

clawk.

Source

clawk.lisp.

Macro: match-case (strexpr &rest clauses)
Package

clawk.

Source

clawk.lisp.

Macro: match-when (&rest clauses)
Package

clawk.

Source

clawk.lisp.

Macro: when-file-fields ((path &optional fieldspec) &rest clauses)
Package

clawk.

Source

clawk.lisp.

Macro: when-stream-fields ((stream &optional fieldspec) &rest clauses)
Package

clawk.

Source

clawk.lisp.

Macro: with-fields ((&optional fields sourcestr fieldsep-pattern) &rest body)

Split the source string into fields based on the field separator, bind the field array to the fields variable.

Package

clawk.

Source

clawk.lisp.

Macro: with-match ((&optional fields pat sourcestr) &rest body)

Split the source string into registers based on the pattern, bind the register variables to the registers array.

Package

clawk.

Source

clawk.lisp.

Macro: with-patterns (pats &rest body)

Execute the body in an environment that includes the compiled patterns bound to their respective variables.

Package

clawk.

Source

clawk.lisp.

Macro: with-submatches (&optional fields &rest body)

Bind the submatch variables to the corresponding strings from the registers array.

Package

clawk.

Source

clawk.lisp.


5.1.4 Setf expanders

Setf Expander: (setf $#n) (n)
Package

clawk.

Source

clawk.lisp.

Reader

$#n (function).

Setf Expander: (setf $n) (n)
Package

clawk.

Source

clawk.lisp.

Reader

$n (function).


5.1.5 Ordinary functions

Function: !~ (str pat)

Test if pattern isn’t present in the string.

Package

clawk.

Source

clawk.lisp.

Function: $#n (n)

Access a field, as a number.

Package

clawk.

Source

clawk.lisp.

Setf expander for this function

(setf $#n).

Function: $* (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $+ (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $++ (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $- (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $/ (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $array ()
Package

clawk.

Source

clawk.lisp.

Function: $atan2 (x y)
Package

clawk.

Source

clawk.lisp.

Function: $cos (x)
Package

clawk.

Source

clawk.lisp.

Function: $delete (tbl &optional elt)
Package

clawk.

Source

clawk.lisp.

Function: $exp (y)
Package

clawk.

Source

clawk.lisp.

Function: $expt (x y)
Package

clawk.

Source

clawk.lisp.

Function: $fprint (stream &rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $gsub (pattern replacement &optional source)

Replaces all occurrences of pattern in the source string. Coerces its arguments to the appropriate type.

Package

clawk.

Source

clawk.lisp.

Function: $in (key tbl)
Package

clawk.

Source

clawk.lisp.

Function: $index (pat str &optional start)
Package

clawk.

Source

clawk.lisp.

Function: $int (x)
Package

clawk.

Source

clawk.lisp.

Function: $log (x)
Package

clawk.

Source

clawk.lisp.

Function: $match (source pattern &optional start)

Scan for first occurrence of a pattern within the source string. Coerces its arguments to the appropriate type.

Package

clawk.

Source

clawk.lisp.

Function: $n (n)

Access a field.

Package

clawk.

Source

clawk.lisp.

Setf expander for this function

(setf $n).

Function: $print (&rest rest)
Package

clawk.

Source

clawk.lisp.

Function: $rand ()
Package

clawk.

Source

clawk.lisp.

Function: $rem (x y)
Package

clawk.

Source

clawk.lisp.

Function: $sin (x)
Package

clawk.

Source

clawk.lisp.

Function: $split (&optional source fieldsep-pattern)

Split a string up into a list of multiple fields based on
the field-separator pattern. Coerces its arguments to the appropriate type.

Package

clawk.

Source

clawk.lisp.

Function: $sqrt (x)
Package

clawk.

Source

clawk.lisp.

Function: $srand (x)
Package

clawk.

Source

clawk.lisp.

Function: $sub (pattern replacement &optional source)

Replace the first occurrence of pattern in the source string. Coerces its arguments to the appropriate type.

Package

clawk.

Source

clawk.lisp.

Function: $substr (str start len)
Package

clawk.

Source

clawk.lisp.

Function: %n (n)

Access a register.

Package

clawk.

Source

clawk.lisp.

Function: /~ (str pat)

Test if pattern isn’t present in the string.

Package

clawk.

Source

clawk.lisp.

Function: gsub (pattern replacement &optional source)

Replace all occurrences of pattern in the source string.

Package

clawk.

Source

clawk.lisp.

Function: index (pat str &optional start)
Package

clawk.

Source

clawk.lisp.

Function: install-regex-syntax ()
Package

clawk.

Source

clawk.lisp.

Function: match (source pattern &optional start)

Scan for first occurrence of a pattern within the source string.

Package

clawk.

Source

clawk.lisp.

Function: split (&optional source fieldsep-pattern include-empty-leading-and-trailing-fields)

Split a string up into a list of multiple fields based on the field-separator pattern.

Package

clawk.

Source

clawk.lisp.

Function: sub (pattern replacement &optional source)

Replace the first occurrence of pattern in the source string.

Package

clawk.

Source

clawk.lisp.

Function: substr (str start len)
Package

clawk.

Source

clawk.lisp.


5.1.6 Generic functions

Generic Function: $/= (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $/= ((x string) (y string))
Method: $/= ((x string) (y number))
Method: $/= ((x number) (y string))
Method: $/= ((x number) (y number))
Method: $/= (x y)
Generic Function: $< (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $< ((x string) (y string))
Method: $< ((x string) (y number))
Method: $< ((x number) (y string))
Method: $< ((x number) (y number))
Method: $< (x y)
Generic Function: $<= (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $<= ((x string) (y string))
Method: $<= ((x string) (y number))
Method: $<= ((x number) (y string))
Method: $<= ((x number) (y number))
Method: $<= (x y)
Generic Function: $== (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $== ((x string) (y string))
Method: $== ((x string) (y number))
Method: $== ((x number) (y string))
Method: $== ((x number) (y number))
Method: $== (x y)
Generic Function: $> (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $> ((x string) (y string))
Method: $> ((x string) (y number))
Method: $> ((x number) (y string))
Method: $> ((x number) (y number))
Method: $> (x y)
Generic Function: $>= (x y)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $>= ((x string) (y string))
Method: $>= ((x string) (y number))
Method: $>= ((x number) (y string))
Method: $>= ((x number) (y number))
Method: $>= (x y)
Generic Function: $length (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $length ((x hash-table))
Method: $length ((x (eql nil)))
Method: $length ((x number))
Method: $length (x)
Generic Function: $max (x &rest rest)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $max ((x number) &rest rest)
Method: $max (x &rest rest)
Generic Function: $min (x &rest rest)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $min ((x number) &rest rest)
Method: $min (x &rest rest)
Generic Function: $zerop (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: $zerop ((x string))
Method: $zerop ((x (eql nil)))
Method: $zerop ((x number))
Method: $zerop (x)
Generic Function: get-matcher-for-pattern (pattern)
Package

clawk.

Source

clawk.lisp.

Methods
Method: get-matcher-for-pattern ((pattern matcher))
Method: get-matcher-for-pattern ((pattern string))
Method: get-matcher-for-pattern ((pattern symbol))
Generic Function: int (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: int ((x string))
Method: int ((x (eql nil)))
Method: int ((x number))
Method: int ((x integer))
Generic Function: num (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: num ((x string))
Method: num ((x (eql nil)))
Method: num ((x number))
Generic Function: str (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: str ((x number))
Method: str ((x (eql nil)))
Method: str ((x string))
Generic Function: ~ (str pat)

Test if pattern matches the string.

Package

clawk.

Source

clawk.lisp.

Methods
Method: ~ ((pat symbol) (str string))
Method: ~ ((matcher matcher) (str string))
Method: ~ ((str string) pat)
Method: ~ ((str string) (matcher matcher))

5.2 Internals


5.2.1 Constants

Constant: +ws-fieldsep-pat+
Package

clawk.

Source

clawk.lisp.


5.2.2 Special variables

Special Variable: *fs-is-ws*
Package

clawk.

Source

clawk.lisp.

Special Variable: *ofs*
Package

clawk.

Source

clawk.lisp.

Special Variable: *ors*
Package

clawk.

Source

clawk.lisp.

Special Variable: *random-states*
Package

clawk.

Source

clawk.lisp.


5.2.3 Macros

Macro: once-only (variables &rest body)

Returns the code built by BODY. If any of VARIABLES might have side effects, they are evaluated once and stored in temporary variables that are then passed to BODY.

Package

clawk.

Source

clawk.lisp.


5.2.4 Ordinary functions

Function: != (x y)
Package

clawk.

Source

clawk.lisp.

Function: #/-reader (strm subchar arg)
Package

clawk.

Source

clawk.lisp.

Function: #`-reader (strm subchar arg)
Package

clawk.

Source

clawk.lisp.

Function: assoc-array-ref (tbl index)
Setf Expander: (setf assoc-array-ref) (tbl index)
Package

clawk.

Source

clawk.lisp.

Function: do-$fprint (stream lst)
Package

clawk.

Source

clawk.lisp.

Function: expand-for-file-fields (strmvar linevar fieldspec path body)
Package

clawk.

Source

clawk.lisp.

Function: expand-for-file-lines (streamvar linevar path body)
Package

clawk.

Source

clawk.lisp.

Function: expand-for-stream-fields (strmvar linevar fieldspec stream body &key curfile-name)
Package

clawk.

Source

clawk.lisp.

Function: expand-for-stream-lines (streamvar linevar stream body)
Package

clawk.

Source

clawk.lisp.

Function: expand-if-match (pat str pos consequent alternative)
Package

clawk.

Source

clawk.lisp.

Function: expand-match-case (strexpr clauses)
Package

clawk.

Source

clawk.lisp.

Function: expand-match-case-clauses (strexpr clauses)
Package

clawk.

Source

clawk.lisp.

Function: expand-match-when-clause (clause)
Package

clawk.

Source

clawk.lisp.

Function: expand-match-when-consequent (consequent)
Package

clawk.

Source

clawk.lisp.

Function: expand-with-fields (fields sourcestr fieldsep-pattern body)
Package

clawk.

Source

clawk.lisp.

Function: expand-with-match (pat fields sourcestr body)
Package

clawk.

Source

clawk.lisp.

Function: expand-with-pattern (var strpat body)
Package

clawk.

Source

clawk.lisp.

Function: expand-with-patterns (pats body)
Package

clawk.

Source

clawk.lisp.

Function: expand-with-submatches (fields body)
Package

clawk.

Source

clawk.lisp.

Function: extract-begin-clauses (clauses)
Package

clawk.

Source

clawk.lisp.

Function: extract-docs-and-decs (clauses)
Package

clawk.

Source

clawk.lisp.

Function: extract-end-clauses (clauses)
Package

clawk.

Source

clawk.lisp.

Function: extract-pattern-clauses (clauses)
Package

clawk.

Source

clawk.lisp.

Function: fs ()
Package

clawk.

Source

clawk.lisp.

Function: get-reg-str (str regs n)

Access a register.

Package

clawk.

Source

clawk.lisp.

Function: install-cmd-syntax ()
Package

clawk.

Source

clawk.lisp.

Function: is-special-clause (clause type)
Package

clawk.

Source

clawk.lisp.

Function: make-register-list (str regs)
Package

clawk.

Source

clawk.lisp.

Function: sample (filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: side-effect-free-p (exp)

Is EXP a constant, variable, or function,
or of the form (THE type x) where x is side-effect-free.

Package

clawk.

Source

clawk.lisp.

Function: starts-with (lst x)
Package

clawk.

Source

clawk.lisp.

Function: symbol-name-eq (x y)
Package

clawk.

Source

clawk.lisp.

Function: test-1-1-1 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-1-2 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-1-3 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-1-4 (&rest args)

Print out the employees that have worked this week.

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-11-1 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-11-2 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-12-1 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-12-3 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-12-4 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-13-1 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-13-2 (&optional filename)

Print last line

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-14-1 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-14-2 (filename)

Count lines, words, and characters

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-14-3 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-15 (filename)

Input lines: amount rate years

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-16-2-1 (filename)

Print lines in reverse order

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-16-2-2 (&rest args)

Print lines in reverse order

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-17-3-1 (filename)

Print the last field of every input line

Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-17-3-2 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-2 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-6 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-7 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test-1-9 (&optional filename)
Package

clawk-test.

Source

clawktest.lisp.

Function: test/1 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.

Function: test/2 (&rest args)
Package

clawk-test.

Source

clawktest.lisp.


5.2.5 Generic functions

Generic Function: ! (x)
Package

clawk.

Source

clawk.lisp.

Methods
Method: ! ((x string))
Method: ! ((x (eql nil)))
Method: ! ((x number))

Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   !   #   $   %   (   /   ~  
A   D   E   F   G   I   M   N   O   S   T   W  
Index Entry  Section

!
!: Private generic functions
!: Private generic functions
!: Private generic functions
!: Private generic functions
!=: Private ordinary functions
!~: Public ordinary functions

#
#/-reader: Private ordinary functions
#`-reader: Private ordinary functions

$
$#n: Public ordinary functions
$*: Public ordinary functions
$+: Public ordinary functions
$++: Public ordinary functions
$-: Public ordinary functions
$/: Public ordinary functions
$/=: Public generic functions
$/=: Public generic functions
$/=: Public generic functions
$/=: Public generic functions
$/=: Public generic functions
$/=: Public generic functions
$<: Public generic functions
$<: Public generic functions
$<: Public generic functions
$<: Public generic functions
$<: Public generic functions
$<: Public generic functions
$<=: Public generic functions
$<=: Public generic functions
$<=: Public generic functions
$<=: Public generic functions
$<=: Public generic functions
$<=: Public generic functions
$==: Public generic functions
$==: Public generic functions
$==: Public generic functions
$==: Public generic functions
$==: Public generic functions
$==: Public generic functions
$>: Public generic functions
$>: Public generic functions
$>: Public generic functions
$>: Public generic functions
$>: Public generic functions
$>: Public generic functions
$>=: Public generic functions
$>=: Public generic functions
$>=: Public generic functions
$>=: Public generic functions
$>=: Public generic functions
$>=: Public generic functions
$aref: Public macros
$array: Public ordinary functions
$atan2: Public ordinary functions
$cos: Public ordinary functions
$delete: Public ordinary functions
$exp: Public ordinary functions
$expt: Public ordinary functions
$for: Public macros
$fprint: Public ordinary functions
$gsub: Public ordinary functions
$in: Public ordinary functions
$index: Public ordinary functions
$int: Public ordinary functions
$length: Public generic functions
$length: Public generic functions
$length: Public generic functions
$length: Public generic functions
$length: Public generic functions
$log: Public ordinary functions
$match: Public ordinary functions
$max: Public generic functions
$max: Public generic functions
$max: Public generic functions
$min: Public generic functions
$min: Public generic functions
$min: Public generic functions
$n: Public ordinary functions
$print: Public ordinary functions
$rand: Public ordinary functions
$rem: Public ordinary functions
$sin: Public ordinary functions
$split: Public ordinary functions
$sqrt: Public ordinary functions
$srand: Public ordinary functions
$sub: Public ordinary functions
$substr: Public ordinary functions
$zerop: Public generic functions
$zerop: Public generic functions
$zerop: Public generic functions
$zerop: Public generic functions
$zerop: Public generic functions

%
%n: Public ordinary functions

(
(setf $#n): Public setf expanders
(setf $n): Public setf expanders
(setf assoc-array-ref): Private ordinary functions

/
/~: Public ordinary functions

~
~: Public generic functions
~: Public generic functions
~: Public generic functions
~: Public generic functions
~: Public generic functions

A
assoc-array-ref: Private ordinary functions

D
defawk: Public macros
do-$fprint: Private ordinary functions

E
expand-for-file-fields: Private ordinary functions
expand-for-file-lines: Private ordinary functions
expand-for-stream-fields: Private ordinary functions
expand-for-stream-lines: Private ordinary functions
expand-if-match: Private ordinary functions
expand-match-case: Private ordinary functions
expand-match-case-clauses: Private ordinary functions
expand-match-when-clause: Private ordinary functions
expand-match-when-consequent: Private ordinary functions
expand-with-fields: Private ordinary functions
expand-with-match: Private ordinary functions
expand-with-pattern: Private ordinary functions
expand-with-patterns: Private ordinary functions
expand-with-submatches: Private ordinary functions
extract-begin-clauses: Private ordinary functions
extract-docs-and-decs: Private ordinary functions
extract-end-clauses: Private ordinary functions
extract-pattern-clauses: Private ordinary functions

F
for-file-fields: Public macros
for-file-lines: Public macros
for-stream-fields: Public macros
for-stream-lines: Public macros
fs: Private ordinary functions
Function, !=: Private ordinary functions
Function, !~: Public ordinary functions
Function, #/-reader: Private ordinary functions
Function, #`-reader: Private ordinary functions
Function, $#n: Public ordinary functions
Function, $*: Public ordinary functions
Function, $+: Public ordinary functions
Function, $++: Public ordinary functions
Function, $-: Public ordinary functions
Function, $/: Public ordinary functions
Function, $array: Public ordinary functions
Function, $atan2: Public ordinary functions
Function, $cos: Public ordinary functions
Function, $delete: Public ordinary functions
Function, $exp: Public ordinary functions
Function, $expt: Public ordinary functions
Function, $fprint: Public ordinary functions
Function, $gsub: Public ordinary functions
Function, $in: Public ordinary functions
Function, $index: Public ordinary functions
Function, $int: Public ordinary functions
Function, $log: Public ordinary functions
Function, $match: Public ordinary functions
Function, $n: Public ordinary functions
Function, $print: Public ordinary functions
Function, $rand: Public ordinary functions
Function, $rem: Public ordinary functions
Function, $sin: Public ordinary functions
Function, $split: Public ordinary functions
Function, $sqrt: Public ordinary functions
Function, $srand: Public ordinary functions
Function, $sub: Public ordinary functions
Function, $substr: Public ordinary functions
Function, %n: Public ordinary functions
Function, /~: Public ordinary functions
Function, assoc-array-ref: Private ordinary functions
Function, do-$fprint: Private ordinary functions
Function, expand-for-file-fields: Private ordinary functions
Function, expand-for-file-lines: Private ordinary functions
Function, expand-for-stream-fields: Private ordinary functions
Function, expand-for-stream-lines: Private ordinary functions
Function, expand-if-match: Private ordinary functions
Function, expand-match-case: Private ordinary functions
Function, expand-match-case-clauses: Private ordinary functions
Function, expand-match-when-clause: Private ordinary functions
Function, expand-match-when-consequent: Private ordinary functions
Function, expand-with-fields: Private ordinary functions
Function, expand-with-match: Private ordinary functions
Function, expand-with-pattern: Private ordinary functions
Function, expand-with-patterns: Private ordinary functions
Function, expand-with-submatches: Private ordinary functions
Function, extract-begin-clauses: Private ordinary functions
Function, extract-docs-and-decs: Private ordinary functions
Function, extract-end-clauses: Private ordinary functions
Function, extract-pattern-clauses: Private ordinary functions
Function, fs: Private ordinary functions
Function, get-reg-str: Private ordinary functions
Function, gsub: Public ordinary functions
Function, index: Public ordinary functions
Function, install-cmd-syntax: Private ordinary functions
Function, install-regex-syntax: Public ordinary functions
Function, is-special-clause: Private ordinary functions
Function, make-register-list: Private ordinary functions
Function, match: Public ordinary functions
Function, sample: Private ordinary functions
Function, side-effect-free-p: Private ordinary functions
Function, split: Public ordinary functions
Function, starts-with: Private ordinary functions
Function, sub: Public ordinary functions
Function, substr: Public ordinary functions
Function, symbol-name-eq: Private ordinary functions
Function, test-1-1-1: Private ordinary functions
Function, test-1-1-2: Private ordinary functions
Function, test-1-1-3: Private ordinary functions
Function, test-1-1-4: Private ordinary functions
Function, test-1-11-1: Private ordinary functions
Function, test-1-11-2: Private ordinary functions
Function, test-1-12-1: Private ordinary functions
Function, test-1-12-3: Private ordinary functions
Function, test-1-12-4: Private ordinary functions
Function, test-1-13-1: Private ordinary functions
Function, test-1-13-2: Private ordinary functions
Function, test-1-14-1: Private ordinary functions
Function, test-1-14-2: Private ordinary functions
Function, test-1-14-3: Private ordinary functions
Function, test-1-15: Private ordinary functions
Function, test-1-16-2-1: Private ordinary functions
Function, test-1-16-2-2: Private ordinary functions
Function, test-1-17-3-1: Private ordinary functions
Function, test-1-17-3-2: Private ordinary functions
Function, test-1-2: Private ordinary functions
Function, test-1-6: Private ordinary functions
Function, test-1-7: Private ordinary functions
Function, test-1-9: Private ordinary functions
Function, test/1: Private ordinary functions
Function, test/2: Private ordinary functions

G
Generic Function, !: Private generic functions
Generic Function, $/=: Public generic functions
Generic Function, $<: Public generic functions
Generic Function, $<=: Public generic functions
Generic Function, $==: Public generic functions
Generic Function, $>: Public generic functions
Generic Function, $>=: Public generic functions
Generic Function, $length: Public generic functions
Generic Function, $max: Public generic functions
Generic Function, $min: Public generic functions
Generic Function, $zerop: Public generic functions
Generic Function, get-matcher-for-pattern: Public generic functions
Generic Function, int: Public generic functions
Generic Function, num: Public generic functions
Generic Function, str: Public generic functions
Generic Function, ~: Public generic functions
get-matcher-for-pattern: Public generic functions
get-matcher-for-pattern: Public generic functions
get-matcher-for-pattern: Public generic functions
get-matcher-for-pattern: Public generic functions
get-reg-str: Private ordinary functions
gsub: Public ordinary functions

I
if-match: Public macros
index: Public ordinary functions
install-cmd-syntax: Private ordinary functions
install-regex-syntax: Public ordinary functions
int: Public generic functions
int: Public generic functions
int: Public generic functions
int: Public generic functions
int: Public generic functions
is-special-clause: Private ordinary functions

M
Macro, $aref: Public macros
Macro, $for: Public macros
Macro, defawk: Public macros
Macro, for-file-fields: Public macros
Macro, for-file-lines: Public macros
Macro, for-stream-fields: Public macros
Macro, for-stream-lines: Public macros
Macro, if-match: Public macros
Macro, match-case: Public macros
Macro, match-when: Public macros
Macro, once-only: Private macros
Macro, when-file-fields: Public macros
Macro, when-stream-fields: Public macros
Macro, with-fields: Public macros
Macro, with-match: Public macros
Macro, with-patterns: Public macros
Macro, with-submatches: Public macros
make-register-list: Private ordinary functions
match: Public ordinary functions
match-case: Public macros
match-when: Public macros
Method, !: Private generic functions
Method, !: Private generic functions
Method, !: Private generic functions
Method, $/=: Public generic functions
Method, $/=: Public generic functions
Method, $/=: Public generic functions
Method, $/=: Public generic functions
Method, $/=: Public generic functions
Method, $<: Public generic functions
Method, $<: Public generic functions
Method, $<: Public generic functions
Method, $<: Public generic functions
Method, $<: Public generic functions
Method, $<=: Public generic functions
Method, $<=: Public generic functions
Method, $<=: Public generic functions
Method, $<=: Public generic functions
Method, $<=: Public generic functions
Method, $==: Public generic functions
Method, $==: Public generic functions
Method, $==: Public generic functions
Method, $==: Public generic functions
Method, $==: Public generic functions
Method, $>: Public generic functions
Method, $>: Public generic functions
Method, $>: Public generic functions
Method, $>: Public generic functions
Method, $>: Public generic functions
Method, $>=: Public generic functions
Method, $>=: Public generic functions
Method, $>=: Public generic functions
Method, $>=: Public generic functions
Method, $>=: Public generic functions
Method, $length: Public generic functions
Method, $length: Public generic functions
Method, $length: Public generic functions
Method, $length: Public generic functions
Method, $max: Public generic functions
Method, $max: Public generic functions
Method, $min: Public generic functions
Method, $min: Public generic functions
Method, $zerop: Public generic functions
Method, $zerop: Public generic functions
Method, $zerop: Public generic functions
Method, $zerop: Public generic functions
Method, get-matcher-for-pattern: Public generic functions
Method, get-matcher-for-pattern: Public generic functions
Method, get-matcher-for-pattern: Public generic functions
Method, int: Public generic functions
Method, int: Public generic functions
Method, int: Public generic functions
Method, int: Public generic functions
Method, num: Public generic functions
Method, num: Public generic functions
Method, num: Public generic functions
Method, str: Public generic functions
Method, str: Public generic functions
Method, str: Public generic functions
Method, ~: Public generic functions
Method, ~: Public generic functions
Method, ~: Public generic functions
Method, ~: Public generic functions

N
num: Public generic functions
num: Public generic functions
num: Public generic functions
num: Public generic functions

O
once-only: Private macros

S
sample: Private ordinary functions
Setf Expander, (setf $#n): Public setf expanders
Setf Expander, (setf $n): Public setf expanders
Setf Expander, (setf assoc-array-ref): Private ordinary functions
side-effect-free-p: Private ordinary functions
split: Public ordinary functions
starts-with: Private ordinary functions
str: Public generic functions
str: Public generic functions
str: Public generic functions
str: Public generic functions
sub: Public ordinary functions
substr: Public ordinary functions
symbol-name-eq: Private ordinary functions

T
test-1-1-1: Private ordinary functions
test-1-1-2: Private ordinary functions
test-1-1-3: Private ordinary functions
test-1-1-4: Private ordinary functions
test-1-11-1: Private ordinary functions
test-1-11-2: Private ordinary functions
test-1-12-1: Private ordinary functions
test-1-12-3: Private ordinary functions
test-1-12-4: Private ordinary functions
test-1-13-1: Private ordinary functions
test-1-13-2: Private ordinary functions
test-1-14-1: Private ordinary functions
test-1-14-2: Private ordinary functions
test-1-14-3: Private ordinary functions
test-1-15: Private ordinary functions
test-1-16-2-1: Private ordinary functions
test-1-16-2-2: Private ordinary functions
test-1-17-3-1: Private ordinary functions
test-1-17-3-2: Private ordinary functions
test-1-2: Private ordinary functions
test-1-6: Private ordinary functions
test-1-7: Private ordinary functions
test-1-9: Private ordinary functions
test/1: Private ordinary functions
test/2: Private ordinary functions

W
when-file-fields: Public macros
when-stream-fields: Public macros
with-fields: Public macros
with-match: Public macros
with-patterns: Public macros
with-submatches: Public macros


A.3 Variables

Jump to:   $   %   *   +  
C   S  
Index Entry  Section

$
$#0: Public symbol macros
$#1: Public symbol macros
$#10: Public symbol macros
$#11: Public symbol macros
$#12: Public symbol macros
$#13: Public symbol macros
$#14: Public symbol macros
$#15: Public symbol macros
$#16: Public symbol macros
$#17: Public symbol macros
$#18: Public symbol macros
$#19: Public symbol macros
$#2: Public symbol macros
$#20: Public symbol macros
$#3: Public symbol macros
$#4: Public symbol macros
$#5: Public symbol macros
$#6: Public symbol macros
$#7: Public symbol macros
$#8: Public symbol macros
$#9: Public symbol macros
$#nf: Public symbol macros
$0: Public symbol macros
$1: Public symbol macros
$10: Public symbol macros
$11: Public symbol macros
$12: Public symbol macros
$13: Public symbol macros
$14: Public symbol macros
$15: Public symbol macros
$16: Public symbol macros
$17: Public symbol macros
$18: Public symbol macros
$19: Public symbol macros
$2: Public symbol macros
$20: Public symbol macros
$3: Public symbol macros
$4: Public symbol macros
$5: Public symbol macros
$6: Public symbol macros
$7: Public symbol macros
$8: Public symbol macros
$9: Public symbol macros
$nf: Public symbol macros

%
%#0: Public symbol macros
%#1: Public symbol macros
%#10: Public symbol macros
%#11: Public symbol macros
%#12: Public symbol macros
%#13: Public symbol macros
%#14: Public symbol macros
%#15: Public symbol macros
%#16: Public symbol macros
%#17: Public symbol macros
%#18: Public symbol macros
%#19: Public symbol macros
%#2: Public symbol macros
%#20: Public symbol macros
%#3: Public symbol macros
%#4: Public symbol macros
%#5: Public symbol macros
%#6: Public symbol macros
%#7: Public symbol macros
%#8: Public symbol macros
%#9: Public symbol macros
%0: Public symbol macros
%1: Public symbol macros
%10: Public symbol macros
%11: Public symbol macros
%12: Public symbol macros
%13: Public symbol macros
%14: Public symbol macros
%15: Public symbol macros
%16: Public symbol macros
%17: Public symbol macros
%18: Public symbol macros
%19: Public symbol macros
%2: Public symbol macros
%20: Public symbol macros
%3: Public symbol macros
%4: Public symbol macros
%5: Public symbol macros
%6: Public symbol macros
%7: Public symbol macros
%8: Public symbol macros
%9: Public symbol macros

*
*curfile*: Public special variables
*curline*: Public special variables
*fields*: Public special variables
*fnr*: Public special variables
*fs*: Public special variables
*fs-is-ws*: Private special variables
*last-successful-match*: Public special variables
*nf*: Public special variables
*nr*: Public special variables
*ofs*: Private special variables
*ors*: Private special variables
*random-states*: Private special variables
*regs*: Public special variables
*rend*: Public special variables
*rlength*: Public special variables
*rstart*: Public special variables
*subsep*: Public special variables

+
+ws-fieldsep-pat+: Private constants

C
Constant, +ws-fieldsep-pat+: Private constants

S
Special Variable, *curfile*: Public special variables
Special Variable, *curline*: Public special variables
Special Variable, *fields*: Public special variables
Special Variable, *fnr*: Public special variables
Special Variable, *fs*: Public special variables
Special Variable, *fs-is-ws*: Private special variables
Special Variable, *last-successful-match*: Public special variables
Special Variable, *nf*: Public special variables
Special Variable, *nr*: Public special variables
Special Variable, *ofs*: Private special variables
Special Variable, *ors*: Private special variables
Special Variable, *random-states*: Private special variables
Special Variable, *regs*: Public special variables
Special Variable, *rend*: Public special variables
Special Variable, *rlength*: Public special variables
Special Variable, *rstart*: Public special variables
Special Variable, *subsep*: Public special variables
Symbol Macro, $#0: Public symbol macros
Symbol Macro, $#1: Public symbol macros
Symbol Macro, $#10: Public symbol macros
Symbol Macro, $#11: Public symbol macros
Symbol Macro, $#12: Public symbol macros
Symbol Macro, $#13: Public symbol macros
Symbol Macro, $#14: Public symbol macros
Symbol Macro, $#15: Public symbol macros
Symbol Macro, $#16: Public symbol macros
Symbol Macro, $#17: Public symbol macros
Symbol Macro, $#18: Public symbol macros
Symbol Macro, $#19: Public symbol macros
Symbol Macro, $#2: Public symbol macros
Symbol Macro, $#20: Public symbol macros
Symbol Macro, $#3: Public symbol macros
Symbol Macro, $#4: Public symbol macros
Symbol Macro, $#5: Public symbol macros
Symbol Macro, $#6: Public symbol macros
Symbol Macro, $#7: Public symbol macros
Symbol Macro, $#8: Public symbol macros
Symbol Macro, $#9: Public symbol macros
Symbol Macro, $#nf: Public symbol macros
Symbol Macro, $0: Public symbol macros
Symbol Macro, $1: Public symbol macros
Symbol Macro, $10: Public symbol macros
Symbol Macro, $11: Public symbol macros
Symbol Macro, $12: Public symbol macros
Symbol Macro, $13: Public symbol macros
Symbol Macro, $14: Public symbol macros
Symbol Macro, $15: Public symbol macros
Symbol Macro, $16: Public symbol macros
Symbol Macro, $17: Public symbol macros
Symbol Macro, $18: Public symbol macros
Symbol Macro, $19: Public symbol macros
Symbol Macro, $2: Public symbol macros
Symbol Macro, $20: Public symbol macros
Symbol Macro, $3: Public symbol macros
Symbol Macro, $4: Public symbol macros
Symbol Macro, $5: Public symbol macros
Symbol Macro, $6: Public symbol macros
Symbol Macro, $7: Public symbol macros
Symbol Macro, $8: Public symbol macros
Symbol Macro, $9: Public symbol macros
Symbol Macro, $nf: Public symbol macros
Symbol Macro, %#0: Public symbol macros
Symbol Macro, %#1: Public symbol macros
Symbol Macro, %#10: Public symbol macros
Symbol Macro, %#11: Public symbol macros
Symbol Macro, %#12: Public symbol macros
Symbol Macro, %#13: Public symbol macros
Symbol Macro, %#14: Public symbol macros
Symbol Macro, %#15: Public symbol macros
Symbol Macro, %#16: Public symbol macros
Symbol Macro, %#17: Public symbol macros
Symbol Macro, %#18: Public symbol macros
Symbol Macro, %#19: Public symbol macros
Symbol Macro, %#2: Public symbol macros
Symbol Macro, %#20: Public symbol macros
Symbol Macro, %#3: Public symbol macros
Symbol Macro, %#4: Public symbol macros
Symbol Macro, %#5: Public symbol macros
Symbol Macro, %#6: Public symbol macros
Symbol Macro, %#7: Public symbol macros
Symbol Macro, %#8: Public symbol macros
Symbol Macro, %#9: Public symbol macros
Symbol Macro, %0: Public symbol macros
Symbol Macro, %1: Public symbol macros
Symbol Macro, %10: Public symbol macros
Symbol Macro, %11: Public symbol macros
Symbol Macro, %12: Public symbol macros
Symbol Macro, %13: Public symbol macros
Symbol Macro, %14: Public symbol macros
Symbol Macro, %15: Public symbol macros
Symbol Macro, %16: Public symbol macros
Symbol Macro, %17: Public symbol macros
Symbol Macro, %18: Public symbol macros
Symbol Macro, %19: Public symbol macros
Symbol Macro, %2: Public symbol macros
Symbol Macro, %20: Public symbol macros
Symbol Macro, %3: Public symbol macros
Symbol Macro, %4: Public symbol macros
Symbol Macro, %5: Public symbol macros
Symbol Macro, %6: Public symbol macros
Symbol Macro, %7: Public symbol macros
Symbol Macro, %8: Public symbol macros
Symbol Macro, %9: Public symbol macros