Skip to content

atomgardner/aphasia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=====
aphasia

This is a [Pike-inspired] language. It supports basic calculations.

	1 + 2
3

	enum 20
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

	x = enum 20
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

	x
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

	5 take x
1 2 3 4 5

	5 drop x
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

	-5 drop x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

	-5 take x
16 17 18 19 20

	1 + x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

	x = 1 + x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

	deal x
0 0 0 2 0 3 3 4 5 0 4 0 0 4 13 14 11 16 0 17

	+/x
210

	*\x
1 2 6 24 120 720 5040 40320 362880 3628800 ...

	x + x
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

	((shape x)/5) 5 shape x
 1  2  3  4  5
 6  7  8  9 10
11 12 13 14 15
16 17 18 19 20

	y = 5 4 shape x

 1  2  3  4
 5  6  7  8
 9 10 11 12
13 14 15 16
17 18 19 20

	y * y

  1   4   9  16
 25  36  49  64
 81 100 121 144
169 196 225 256
289 324 361 400


=====
[Pike-inspired]: https://www.youtube.com/watch?v=PXoG0WX0r_E

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages