https://github.com/axtens/tsl
Text Substitution Language written in Fitted Software Tools Modula-2
https://github.com/axtens/tsl
Last synced: 4 months ago
JSON representation
Text Substitution Language written in Fitted Software Tools Modula-2
- Host: GitHub
- URL: https://github.com/axtens/tsl
- Owner: axtens
- License: mit
- Created: 2019-08-03T07:25:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T13:29:45.000Z (almost 4 years ago)
- Last Synced: 2025-10-05T23:39:34.269Z (8 months ago)
- Language: Modula-2
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tsl
Text Substitution Language written in Fitted Software Tools Modula-2
A DSL for making multiple changes to text files with or without prompting.
Example TSL control file
```
NOTE Example Script
SHOW ALL
DUPLICATES ON
BREAKON ()+-*/\`'"~!@#$%^&=,.<>?|[]
MESSAGE BREAKS AT ()+-*/\`'"~!@#$%^&=,.<>?|[]
NOTE Filename taken from commandline.
FILE $1
SUBST "end" with "dne" nocase whole confirm
subst "end;" with ";dne" nocase whole confirm
SUBST "procedure" with "erudecorp" nocase whole confirm
subst "function" with "noitcnuf" nocase whole confirm
GO
END
```
See Doucmentation.txt for a longer description.
See the [xlb](https://github.com/axtens/xlb) project for required non-FST libraries.
Building and/or converting to another Modula-2 is left as a task for the reader and/or the author should he find the time.
Other Modula-2 compilers: [M2F](http://floppsie.comp.glam.ac.uk/Glamorgan/gaius/web/m2fabout.html), [GNU Modula-2](https://www.nongnu.org/gm2/download.html), [XDS](https://github.com/excelsior-oss/xds) and [ADW](https://www.modula2.org/adwm2/).
Other good Modula-2 information can be found at [Peter Moylan](http://www.pmoylan.org/pages/m2/Modula2.html)'s site.