diff options
author | B. Watson <urchlay@slackware.uk> | 2024-06-13 17:33:43 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-06-13 17:33:43 -0400 |
commit | 1701b8c7c14d38ff2de5703065d013ebe5c8f889 (patch) | |
tree | 571f209e111ee3b11159086a899c3bbc77cf8189 /vxrefbas.rst | |
parent | ce201121b5785d9ecb2829d262c23050e537fa9e (diff) | |
download | bw-atari8-tools-1701b8c7c14d38ff2de5703065d013ebe5c8f889.tar.gz |
vxrefbas: WIP.
Diffstat (limited to 'vxrefbas.rst')
-rw-r--r-- | vxrefbas.rst | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/vxrefbas.rst b/vxrefbas.rst index b06deb5..155cd80 100644 --- a/vxrefbas.rst +++ b/vxrefbas.rst @@ -15,24 +15,39 @@ vxrefbas **input-file** DESCRIPTION =========== -**vxrefbas** reads an Atari 8-bit BASIC tokenized program and prints -a list of variables, each with a list of line numbers where the -variable is referenced. +**vxrefbas** reads an Atari 8-bit BASIC tokenized program and prints a +list of variables (names and token numbers), each with a list of line +numbers where the variable is referenced. + +String variable names end with *$*. Arrays end with *(*. Numeric +(scalar) variable names don't have a special character. + +After the list of lines, the reference count is shown in parentheses. Variables that aren't used by the program are listed as *(no references)*. -Each line number may be followed by one or more markers, which show the -type of variable access. +Each line number may be followed by an *=* and one or more markers, +which show the type of variable access. -**=** - The variable is assigned on this line, with *LET* or "implied LET" (e.g. +**A** + Variable is assigned on this line, with *LET* or "implied LET" (e.g. *A=1*). -**{** - The variable is used as the control variable of a *FOR* loop on this line. +**F** + Variable is used as the control variable of a *FOR* loop on this line. + +**N** + Variable is used in a *NEXT* on this line. + +**D** + The variable is dimensioned (*DIM* command) on this line. Only applies to + string and array variables. + +**I** + Variable was *INPUT* on this line. -**}** - The variable is used in a *NEXT* on this line. +**R** + Variable was *READ* on this line. OPTIONS ======= |