1
1
Fork
You've already forked yico
0
"Reversed stack-based" programming language. It means it's pushing operations on the stack instead of values.
  • Go 100%
2024年12月23日 13:55:01 +00:00
.vscode Adds README.md 2024年11月17日 13:00:48 +01:00
example Added new math OPs, and slight fixes 2024年11月17日 12:28:09 +01:00
.gitignore Initial commit 2024年11月16日 16:35:53 +00:00
go.mod Adds emulation, lexing and two operations 2024年11月16日 17:37:30 +01:00
LICENSE Fix name in LICENSE 2024年11月16日 16:42:40 +00:00
main.go Added new math OPs, and slight fixes 2024年11月17日 12:28:09 +01:00
README.md Update README.md 2024年12月23日 13:55:01 +00:00

Yico

Warning

The core ideas of the project changed recently, this README is outdated

Yico is a "reversed stack-based" programming language, meaning it's pushing operations instead of values on a stack.

Operations

Token Name Arguments Return values
. Print 2 0
+ Add 2 1
- Subtract 2 1
* Multiply 2 1
/ Divide 2 1
% Remainder 2 1

Examples

They are located in the ./examples directory.

basic_math.yico

. + 34 35
. / 840 2
. % 69 2
. * -1 - 1 * 35 2

Expected output:

69
420
1
69