DG - A(n) (unusual) programming language

Overview

DG - A(n) (unusual) programming language

General structure

  • There are no infix-operators (i.e. 1 + 1)
  • Each operator takes 2 parameters
  • When there are more than 2 parameters required, they will be listed by ","
  • Code is interpreted line by line
  • There must not be blank lines
  • Any character that isn't an operator starts a comment (";" is the only one that I can guarantee will stay a comment going forward)

Syntax

A line followes the general structure [operator] [first parameter] [second parameter]

Operators

Operator Description Syntax
v set variable s x 15 [also s a x (sets a to 15)]
v make an array s b []
v {o} sets variable to output of equation s c o / 1 2 [sets var c to 1 / 2; if s c o * 3 4 c = 12]
+ adds to numbers (only used to set variables) v e o + 1 2
- subtracts to numbers (only used to set variables) v e o - 1 2
* multiplies to numbers (only used to set variables) v e o * 1 2
/ divides to numbers (only used to set variables) v e o / 1 2
% modulo of to numbers (in this case used to set variables) v e o % 8 3
g gets element of array and writes to variable v e o g b 0
p prints variable p "x: {}, a: {}" x,a [see rusts println!]
a append to array a b 15 [b = [15]]
s sets element in array s b 0,12 [b = [12]]
g get element in b g b 0 [prints 12]
; comment ; I'm a comment
> executes if condition is true > x 1 v e o / 1 x [if x > 1, e will be set to 1 / x]
< executes if condition is true < x 1 v e o / 1 x [if x < 1, e will be set to 1 / x]
= executes if condition is true = x 1 v e o / 1 x [if x == 1, e will be set to 1 / x]
! executes if condition is true ! x 1 v e o / 1 x [if x != 1, e will be set to 1 / x]
l basic for loop l 1,10,2 i&v z o / 1 i&p "i:{} z:{} i,z" [for i from 1 to 9 in steps of 2 (1, 3, 5, etc.) set z = 1/i and print i,z. BEFORE AND AFTER THE "&" MUST NOT BE A SPACE]
You might also like...
🚀 emojimash 🚀 is a programming language with ALL THE EMOJI

🚀 emojimash 🚀 is a programming language with ALL THE EMOJI

Nook is a simple, concatenative programming language written in Python.

Nook Nook is a simple, concatenative programming language written in Python. Status Nook is currently WIP. It lacks a lot of basic feature, and will n

A programming language that for tech savvy graphic designers

Microsoft Hackathon - PhoTex Idea A programming language that allows tech savvy graphic designers develop scalable vector graphics using plain text co

Python most simple|stupid programming language (MSPL)
Python most simple|stupid programming language (MSPL)

Most Simple|Stupid Programming language. (MSPL) Stack - Based programming language "written in Python" Features: Interpretate code (Run). Generate gra

a simple functional programming language compiler written in python

Functional Programming Language A compiler for my small functional language. Written in python with SLY lexer/parser generator library. Requirements p

Sodium is a general purpose programming language which is instruction-oriented
Sodium is a general purpose programming language which is instruction-oriented

Sodium is a general purpose programming language which is instruction-oriented (a new programming concept that we are developing and devising)

Plock : A stack based programming language

Plock : A stack based programming language

Eros is an expiremental programming language built using simple Python code.

Eros is an expiremental programming language built using simple Python code. Featuring an easy syntax and unique features like type slicing, the language remains an expirement that grows in down time.

CBLang is a programming language aiming to fix most of my problems with Python

CBLang A bad programming language made in Python. CBLang is a programming language aiming to fix most of my problems with Python (this means that you

Owner
null
Rick Astley Language is a rick roll oriented, dynamic, strong, esoteric programming language.

Rick Roll Language / Rick Astley Language A rick roll oriented, dynamic, strong, esoteric programming language. Prolegomenon The reasons that I made t

Rick Roll Programming Language 658 Jan 9, 2023
PyGo custom language, New but similar language programming

New but similar language programming. Now we are capable to program in a very similar language to Python but at the same time get the efficiency of Go.

Fernando Perez 4 Nov 19, 2022
Short, introductory guide for the Python programming language

100 Page Python Intro This book is a short, introductory guide for the Python programming language.

Sundeep Agarwal 185 Dec 26, 2022
sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write python code using javanese character.

ꦱꦮ sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write python code using javanese character. sawa iku

Rony Lantip 307 Jan 7, 2023
The Zig programming language, packaged for PyPI

Zig PyPI distribution This repository contains the script used to repackage the releases of the Zig programming language as Python binary wheels. This

Zig Programming Language 100 Nov 4, 2022
The Official interpreter for the Pix programming language.

The official interpreter for the Pix programming language. Pix Pix is a programming language dedicated to readable syntax and usability Q) Is Pix the

Pix 6 Sep 25, 2022
A topology optimization framework written in Taichi programming language, which is embedded in Python.

Taichi TopOpt (Under Active Development) Intro A topology optimization framework written in Taichi programming language, which is embedded in Python.

Li Zhehao 41 Nov 17, 2022
An esoteric programming language that supports concurrency, regex, and web requests.

The Hofstadter Esoteric Programming Language Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's La

Austin Henley 19 Dec 27, 2022
Built with Python programming language and QT library and Guess the number in three easy, medium and hard rolls

guess-the-numbers Built with Python programming language and QT library and Guess the number in three easy, medium and hard rolls Number guessing game

Amir Hussein Sharifnezhad 5 Oct 9, 2021
Built with Python programming language and QT library and Guess the number in three easy, medium and hard rolls

password-generator Built with Python programming language and QT library and Guess the number in three easy, medium and hard rolls Password generator

Amir Hussein Sharifnezhad 3 Oct 9, 2021