mirror of
https://github.com/tilleul/basic_renumber.git
synced 2024-11-23 03:33:21 +00:00
Formatting ... (mostly)
This commit is contained in:
parent
ece4a659c1
commit
532be45155
14
README.md
14
README.md
@ -7,13 +7,13 @@ This is a very simple NodeJS (javascript) program that allows to renumber BASIC
|
|||||||
It was aimed at Applesoft Basic at first, but it probably works with other BASICs as well ... haven't tried ...
|
It was aimed at Applesoft Basic at first, but it probably works with other BASICs as well ... haven't tried ...
|
||||||
|
|
||||||
The script will read a text file (containing one BASIC line beginning with an integer per line, each line separated by \n\r or \n) and it will renumber all lines and renumber the following:
|
The script will read a text file (containing one BASIC line beginning with an integer per line, each line separated by \n\r or \n) and it will renumber all lines and renumber the following:
|
||||||
- every GOTO ###
|
- every `GOTO ###`
|
||||||
- every GOSUB ###
|
- every `GOSUB ###`
|
||||||
- every ON ERR GOTO #, ##, ###, ...
|
- every `ON ERR GOTO #, ##, ###, ...`
|
||||||
- same for ON ERR GOSUB
|
- same for `ON ERR GOSUB`
|
||||||
- every IF (condition) THEN ###
|
- every `IF (condition) THEN ###`
|
||||||
|
|
||||||
Not supported: GOTO/GOSUB to a VARIABLE. Like: GOTO MY_VAR.
|
Not supported: GOTO/GOSUB to a VARIABLE. Like: `GOTO MY_VAR`. This script does not evaluate "MY_VAR" along your code ..
|
||||||
|
|
||||||
## Usage:
|
## Usage:
|
||||||
Obviously you need NodeJS first. The good news is that it's available for Windows/Mac/Linux. See https://nodejs.org/ for installation instructions.
|
Obviously you need NodeJS first. The good news is that it's available for Windows/Mac/Linux. See https://nodejs.org/ for installation instructions.
|
||||||
@ -22,6 +22,8 @@ Once NodeJS is installed, run a command-line/prompt/whatever-you-call-it and typ
|
|||||||
|
|
||||||
`node path/to/renumber.js path/to/basic/file [path/to/new/basic/file] [line_increment]`
|
`node path/to/renumber.js path/to/basic/file [path/to/new/basic/file] [line_increment]`
|
||||||
|
|
||||||
|
Just type `node path/to/renumber.js` for a little bit more explanation ...
|
||||||
|
|
||||||
It's as simple as that...
|
It's as simple as that...
|
||||||
|
|
||||||
If you have requests or suggestions, don't hesitate ...
|
If you have requests or suggestions, don't hesitate ...
|
||||||
|
Loading…
Reference in New Issue
Block a user