Debian Codegraph @

vms/gawk.cld

raw
1 ! Gawk.Cld -- command defintion for GAWK
2 ! Pat Rankin, Nov'89
3 ! [ revised for 2.12, May'91 ]
4 ! [ revised for 4.0.0, Feb'11 ]
5 !
6 ! This command definition is compiled into an object module which is
7 ! linked into all three programs, GAWK, DGAWK, and PGAWK, and it is
8 ! not able to use syntax-switching qualifers to invoke the different
9 ! images gawk.exe, dgawk.exe, and pgawk.exe. To use dgawk or pgawk
10 ! when this command definition is installed as a native command, use
11 ! $ define gawk location:dgawk.exe
12 ! or $ define gawk location:pgawk.exe
13 !
14 module Gawk_Cmd
15 define verb GAWK
16 synonym AWK
17 ! image gawk !usage $ DEFINE GAWK disk:[directory]GAWK
18 parameter p1, value(required,list), label=gawk_p1, prompt="data file(s)"
19 qualifier input, value(required,list,type=$infile), label=progfile
20 qualifier commands, value(required), label=program
21 qualifier extra_commands, value(required), label=moreprog
22 qualifier field_separator, value(required), label=field_sep
23 qualifier variables, value(required,list)
24 qualifier usage
25 qualifier copyright
26 qualifier version
27 qualifier lint, value(list,type=lint_keywords)
28 qualifier posix
29 qualifier strict, negatable !synonym for /traditional
30 qualifier traditional, negatable
31 qualifier re_interval, negatable !only used with /traditional
32 qualifier sandbox
33 qualifier debug, negatable !obsolete; debug via separate DGAWK program
34 qualifier output, value(type=$outfile,default="SYS$OUTPUT")
35 qualifier optimize, negatable !actually on always; negation is ignored
36 qualifier profile, value(type=$outfile,default="awkprof.out")
37 qualifier dump_variables, value(type=$outfile,default="awkvars.out")
38 qualifier non_decimal_data
39 qualifier characters_as_bytes
40 qualifier use_lc_numeric
41 qualifier gen_pot
42 qualifier reg_expr, value(type=reg_expr_keywords) !(OBSOLETE)
43 disallow progfile and program !or not progfile and not program
44 !disallow lint.warn and (lint.fatal or lint.invalid)
45 define type lint_keywords
46 keyword warn, default
47 keyword fatal !lint warnings terminate execution
48 keyword invalid !warn about invalid constructs but not extensions
49 keyword old !warn about constructs not available in original awk
50 define type reg_expr_keywords
51 keyword awk
52 keyword egrep, default !synonym for 'posix'
53 keyword posix !equivalent to 'egrep'
54 !
55 ! p1 = data file list (possibly including 'var=value' contructs)
56 !note: parameter required; use 'sys$input:' to read data from 'stdin'
57 ! /input = program source file ('-f progfile')
58 ! /commands = program source text ('program')
59 !note: either input or commands, but not both; if neither, usage message given
60 ! /extra_commands = additional program source text; may be combined with /input
61 ! /field_separator = character(s) delimiting record fields; default is "[ \t]"
62 ! /reg_expr = obsolete
63 ! /variables = list of 'var=value' items for assignment prior to BEGIN
64 ! /posix = force POSIX compatability mode operation
65 ! /sandbox = disable I/O redirection and use of system() to execute commands
66 ! /strict = synonym for /traditional
67 ! /traditional = force compatability mode operation (UN*X SYS V, Release 4)
68 ! /re_interval = for /traditional, regular expressions allow interval ranges
69 ! /output = destination for print,printf (default is sys$output: ie, 'stdout')
70 ! /lint = scan the awk program for possible problems and warn about them
71 ! /optimize = parse-time evaluation of constant [sub-]expressions only
72 ! /debug = debugging mode; no-op unless program built using `#define DEBUG'
73 ! /dump_var = at program termination, write out final values for all variables
74 ! /profile = collect all parts of the parsed awk program into awkprof.out
75 !note: use separate pgawk program to collect run-time execution profiling
76 ! /usage = display 'usage' reminder [describing this VMS command syntax]
77 ! /version = show program version and quit; also shows copyright notice
78 ! /copyright = show abbreviated edition of FSF's copyright notice and quit
79 !