Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slicetext/slicetext_lang
A little programming language
https://github.com/slicetext/slicetext_lang
cmake cplusplus cpp language linux programming-language
Last synced: 23 days ago
JSON representation
A little programming language
- Host: GitHub
- URL: https://github.com/slicetext/slicetext_lang
- Owner: slicetext
- Created: 2024-11-26T21:52:20.000Z (26 days ago)
- Default Branch: master
- Last Pushed: 2024-11-26T23:00:05.000Z (26 days ago)
- Last Synced: 2024-11-26T23:28:12.758Z (26 days ago)
- Topics: cmake, cplusplus, cpp, language, linux, programming-language
- Language: C++
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slice Text
This is a little programming language project I've been working on for a while. There are other iterations of various success on my github.
This version is written in C++, with only the standard library.## Building
### Dependencies
There are no dependencies other than cmake and gcc.
### From Commandline
Just run `cmake .` in the project directory and then run `make Lang`. Run with `./Lang.x86_64`!## Features
Right now, the language lexes symbols, strings, operators, and numeric literals but only supports basic calculator-esque
features such as performing arithmatic with PEMDAS, as well as variable assignment.Operator | Function
|:-:|---|
\* | Multiplication
/ | Division
\+ | Addition
\- | Subtraction / Unary Negation
\*\* | Exponents
% | Modulo
& | Bitwise And
\| | Bitwise Or
^ | Bitwise Xor
~ | Bitwise Not
\>\> | Right Shift
<< | Left Shift
++ | Increment
-- | Decrement
= | AssignmentThe language also supports several numeric notations.
Notation | Example | Decimal Equivalent
|---|---|:-:|
Decimal | 21.034 | 21.034
Hex | 0xFA3 | 4003
Binary | 0b11101 | 29