https://github.com/suve/awful
Ugly script language
https://github.com/suve/awful
interpreted-programming-language interpreter scripting-language
Last synced: 3 months ago
JSON representation
Ugly script language
- Host: GitHub
- URL: https://github.com/suve/awful
- Owner: suve
- License: other
- Created: 2014-10-09T22:34:41.000Z (over 11 years ago)
- Default Branch: devel
- Last Pushed: 2020-07-30T14:33:32.000Z (over 5 years ago)
- Last Synced: 2025-01-23T08:41:28.092Z (about 1 year ago)
- Topics: interpreted-programming-language, interpreter, scripting-language
- Language: Pascal
- Homepage:
- Size: 3.39 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
awful
---------------
An ugly, general purpose script language, with an interpreter written in Object Pascal.
Licensed under zlib with acknowledgement (see LICENSE.txt).
Gute Gott, warum?
---------------
Because I was bored and needed something to occupy my brain with.
Also, because it seemed a nice challenge, and because it eventually proved very fun.
I tried to clean up the source somewhat before making the project open to see,
but since I didn't make it all in time, some parts of the code may be really hard to read
(shoutout to the spaghetti-like parser). Well, hopefully all will get cleaned up with time.
Documentation
---------------
All available documentation is currently hosted on my [homepage wiki](http://svgames.pl/wiki).
Building
---------------
To compile, you are going to need Free Pascal Compiler 2.6.2 or newer.
_awful_ does not use any additional libraries and should successfully compile using just what's bundled with the compiler.
To build, just run make. I add `make clean` there because the code uses quite a lot of conditional compiling based on
whether making a normal/cgi release, and FPC does not really recognize a file needs to be recompiled because
the compile-time symbols have changed.
```
cd awful
make
make clean
make cgi
```
Running
---------------
If scriptname is ommitted (or -- is used), script file is read from stdin.
```
awful [-e errfile] [-o outfile] [-i infile] scriptfile [param] [...]
-e (-E) File to redirect stderr to. File is overwritten (appended to).
-o (-O) File to redirect stdout to. File is overwritten (appended to).
-i File to use instead of stdin.
```