Skip to main content


Apex Scripting

Ascript is an easy, extensible, fast, free script interpreter.



BASH, busybox, C, C++, coreutils, cpio, findutils, kmod, PERL, Python, SED, systemd, util-linux are slower.


Boot, shutdown, software logistics are possible.

Stripped Size

ELF ascript 30K! ELFSO 2M! PIC yes! PIE no!.

Compile Duration

10 seconds or less is typical.


cp, gcc, install, ld, Linux, ln, make, mkdir, nm, sed, rm


Segfault locations can be reported. Script can be traced.


Linux-PAM; file; pcre2 if installed optional argot are compiled.


The ascript.5 manual page when read why becomes apparent.


4th generation revision quality was exceeded.


For the IT elite the fun noob feeling resumes. FORTRAN and CP/M are not emulated. A simple two register asm language since emulated an asm hacker similar power rush is attained.



out now		`Which color is pretty? `
out now		`I also like `	sip


io,	out now	`Meow World.\n`


a,	io
LC		``
target origin	LC_DOMAIN_DIR	`./locale-test\0`,=
#target origin	LC_ALL		`de_DE.utf8\0`,=
target origin	LC_ALL		`es_ES.utf8\0`,=

LC		`Hello world\0`
out		LC
# The following two files are required.
# locale-test/de/LC_MESSAGES/
# locale-test/es/LC_MESSAGES/
# i18n translation if done
# similar file generation was done.


a,	io,	self
name		t,		timer,	scope
target		t.sig,		sig restart
				sig sum
origin		"action",	sig pin
origin		t.sig.sum,	sig target
origin		1 x,		sig init

target origin	t.lull.sec	1 x,	=
target host,			timer init

	'again',		self pause
go	'again'

"action",	test,	go	'tock'
	err now	t.sig.sum	`	tick\n`,	ret
'tock'	err now	t.sig.sum	`	tock\n`,	ret


a,	io,	stat

name		A
node list
node list with
node list deep
node list full
node list lean
node list less
node list link
node list most
node list name
node list path
node list type
stat sym

target		A.statsym
stat size
node list stat

target		`/usr/share/man`
node list path name

node list next
go	'done'
out		`deep	`	A.deep	`\n`	\
		`full	`	A.full	`\n`	\
		`lean	`	A.lean	`\n`	\
		`less	`	A.less	`\n`	\
		`link	`	`\n`	\
		`most	`	A.most	`\n`	\
		`name	`	`\n`	\
		`path	`	A.path	`\n`	\
		`type	`	A.type	`\n`	\
		`size	`	A.statsym.size	`\n`
go	'again'

out now		`All done\n`


a,	err,	io

chdir	`/`
name			B,	cpio newc,	scope
name		A,		node list,	scope
node list with
node list most

target	`usr/share/man`
node list path name

target origin	B	A.most
cpio newc push
cpio newc with

node list next,		go	'done'
out			A.most	`\n`
cpio newc add,		go	'fail'
			go	'again'

#target origin		`/tmp/man.cpio`	B,	io save,	go	'fail'
target			`/man.cpio`,		cpio newc save,	go	'fail'

err not		errtext


a,	env,	io,	link

target origin		env	out

link next,		ret
target origin swap,	byte line
target origin swap
go			'again'


a,	io,	ray
self,	self argv
target	self.argv

ray with
ray max

out now		`self.argv.max=`	self.argv.max	`\n`
target		out

ray origin
byte line
ray next
go	'again'


a,	int,	io

name		A,	int 8,	scope,	set	5 x
name		B,	int 8,	scope,	set	6 x
name		C,	int 8,	scope,	#dex

target origin	C	A,=
       origin		B,+
out now		`C=`	C	`\n`


An   argot:
when reached the     code is  executed;
at   line    start   or   aft comma exist;
by   tab     parameters   are separated;
by   comma   or line feed are ended.

UTF-8             is      supported.
By `` text bytes  are     enclosed.
By '' near lables are     enclosed.
By "" far  labels are     enclosed.
Var   names       are not enclosed.

By space and single byte suffix
such as: b; o; d; f; x
a  numeric constant is indicated.

For argot name  1 to 16 bytes exist.
For near  label 1 to 16 bytes exist.
For far   label 1 to 16 bytes exist.
For var   name  1 to 32 bytes can exist.


Asm, C, and ascript operators exist. For target data type the operators tacitly overload.


8 byte and 4 byte integer and 8 byte fixed point are possible. Input output supported formats follow: ASCII binary; ASCII octal; ASCII decimal; ASCII hexadecimal; big endian; little endian.

Flow Control

For  some    argot
with success the next argot is skipped
with failure the next argot is invoked.

Errno Parsing

'EINVAL' 'E2BIG' 'EACCESS' 'ENOENT' ... near labels can be reached or visited.

Cosmetic Boons

do if then else until while [] {} () <> are abstained. In columns names when typed errors seem apparent.

Popular posts from this blog

Self Authored Books and Software URLs

At as google drive hosted content or at from the git repositories master branch the ascript computer language and the books can be downloaded and viewed. From the google drive the dir content as a zip file when downloaded when extracted each file in a fixed width font terminal emulation window with 80 columns wide and 25 rows high with program less when viewed the best appearance is attained.

Love or Submission

Into streaming tears a 40 year old person beat a 4 year old person. "Why?" "Because I love you." A virus similar idea exists. A virus conquerors a cell. The conquered cell replicates a virus. Slave minds submit. Slave minds conqueror. Slave minds become. Earth love is submission. Submission until attained atrocity is inflicted. Decisions made while atrocity was endured can be unmade. A DIVERT is how. Abuse chains can be broke. Mental manacles can be mitigated. Minds can become free. Atrocity while enduring any probable decision seems possible. Balking also is probable. For balking the phrase teenage rebellion seemed popular. Atrocity induced submission is not 100% reliable. Abusers, criminals, liars, murderers, rapists, swindlers, thieves also result. The anticipated atrocity to avoid the deception skill can be attained. Atrocity tends to solicit atrocity. Atrocity when endured atrocity infliction training is attained. F