https://github.com/bartolomej/ralc
Programmable calculator 🔢
https://github.com/bartolomej/ralc
programming-language school-assignment
Last synced: 10 months ago
JSON representation
Programmable calculator 🔢
- Host: GitHub
- URL: https://github.com/bartolomej/ralc
- Owner: bartolomej
- Created: 2021-11-23T13:38:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-28T22:59:23.000Z (about 4 years ago)
- Last Synced: 2025-02-14T18:18:22.905Z (12 months ago)
- Topics: programming-language, school-assignment
- Language: Java
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ralc
Ralc is a simple programming language that uses [reverse polish notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation) for its syntax. This was a university assignment project.
Ralc programs can be executed in REPL (Read-eval-print loop) tool. Here are a few examples of simple ralc programs:
```
Welcome to ralc!
Type '.help' for more info or '.exit' to exit.
> HelloWorld echo
HelloWorld
> 1 2 swap odd echo
1
> 13 ! echo
1932053504
```
Type `.help` to display help for all available commands or `.help ` to display help for a specific command.
```
Welcome to ralc!
Type '.help' for more info or '.exit' to exit.
> .help ech
echo prints out the element at the top of the stack (stack remains unchanged)
```
For a complete list of commands, see [`commands.md`](./commands.md).