Programmer Options #76

Parent #68Owner #36Flags readSource RPG Core/rpgcore-patched.db

Aliases: Programmer Options

8 verbs · 14 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
actualthis none thisrxd#765
showthis none thisrxd#766
show_verb_argsthis none thisrxd#765
check_verb_argsthis none thisrxd#7617
parse_verb_argsthis none thisrxd#7615
show_@prop_flagsthis none thisrxd#766
check_@prop_flagsthis none thisrxd#760
parse_@prop_flagsthis none thisrxd#7611

Properties

PropertyDefinerFlagsOwnerValue
show_eval_time#76rc#36{"eval does not show ticks/seconds consumed.", "eval shows ticks/seconds consumed."}
show_list_all_parens#76rc#36{"@list shows only necessary parentheses by default", "@list shows all parentheses by default"}
show_list_no_numbers#76rc#36{"@list gives line numbers by default", "@list omits line numbers by default"}
show_copy_expert#76rc#36{"@copy prints warning message.", "@copy omits warning message."}
type_@prop_flags#76rc#36{2}
names#68r#36{"list_all_parens", "list_no_numbers", "eval_time", "copy_expert", "verb_args", "@prop_flags"}
_namelist#68r#36"!list_all_parens!list_no_numbers!eval_time!copy_expert!list_numbers!verb_args!@prop_flags!"
extras#68r#36{"list_numbers"}
namewidth#68rc#3615
key#1c#360
aliases#1rc#36{"Programmer Options"}
description#1rc#36{"Option package for $prog commands. See `help @prog-options'."}
object_size#1r#36{5306, -1090650497}
html#1rc#36<clear>

Ancestry

Ancestors (nearest first): #68 Generic Option Package#1 Root Class

Children: none

Call graph

calls n76_1 #76:show n68_6 #68:show n76_1->n68_6 n76_2 #76:show_verb_args n68_0 #68:get n76_2->n68_0 n20_5 #20:from_list n76_2->n20_5 n76_3 #76:check_verb_args n59_17 #59:short_prep n76_3->n59_17 n76_4 #76:parse_verb_args n76_4->n20_5 n20_38 #20:explode n76_4->n20_38 n59_15 #59:parse_argspec n76_4->n59_15 n76_5 #76:show_@prop_flags n76_5->n68_0

Source

actual

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1if (i = args[1] in {"list_numbers"})
2return {{{"list_no_numbers"}[i], !args[2]}};
3else
4return {args};
5endif

show

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1if (o = (name = args[2]) in {"list_numbers"})
2args[2] = {"list_no_numbers"}[o];
3return {@pass(@args), tostr("(", name, " is a synonym for -", args[2], ")")};
4else
5return pass(@args);
6endif

show_verb_args

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1if (value = this:get(@args))
2return {value, {tostr("Default args for @verb:  ", $string_utils:from_list(value, " "))}};
3else
4return {0, {"Default args for @verb:  none none none"}};
5endif

check_verb_args

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1value = args[1];
2if (typeof(value) != LIST)
3return "List expected";
4elseif (length(value) != 3)
5return "List of length 3 expected";
6elseif (!(value[1] in {"this", "none", "any"}))
7return tostr("Invalid dobj specification:  ", value[1]);
8elseif (!((p = $code_utils:short_prep(value[2])) || (value[2] in {"none", "any"})))
9return tostr("Invalid preposition:  ", value[2]);
10elseif (!(value[3] in {"this", "none", "any"}))
11return tostr("Invalid iobj specification:  ", value[3]);
12else
13if (p)
14value[2] = p;
15endif
16return {value};
17endif

parse_verb_args

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1{oname, raw} = args;
2if (typeof(raw) == STR)
3raw = $string_utils:explode(raw, " ");
4elseif (typeof(raw) == INT)
5return raw ? {oname, {"this", "none", "this"}} | {oname, 0};
6endif
7value = $code_utils:parse_argspec(@raw);
8if (typeof(value) != LIST)
9return tostr(value);
10elseif (value[2])
11return tostr("I don't understand \"", $string_utils:from_list(value[2], " "), "\"");
12else
13value = {@value[1], "none", "none", "none"}[1..3];
14return {oname, (value == {"none", "none", "none"}) ? 0 | value};
15endif

show_@prop_flags

Spec this none thisFlags rxdOwner #36Definer #76

Referenced by

none

Source

1value = this:get(@args);
2if (value)
3return {value, {tostr("Default permissions for @property=`", value, "'.")}};
4else
5return {0, {"Default permissions for @property=`rc'."}};
6endif

check_@prop_flags

Spec this none thisFlags rxdOwner #2Definer #76

Referenced by

none

Source

No program (verb defined but unprogrammed).

parse_@prop_flags

Spec this none thisFlags rxdOwner #2Definer #76

Referenced by

none

Source

1{oname, raw} = args;
2if (typeof(raw) != STR)
3return "Must be a string composed of the characters `rwc'.";
4endif
5len = length(raw);
6for x in [1..len]
7if (!(raw[x] in {"r", "w", "c"}))
8return "Must be a string composed of the characters `rwc'.";
9endif
10endfor
11return {oname, raw};