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]
Spooky Castle Project

Spooky Castle Project Here is a repository where I have placed a few workflow scripts that could be used to automate the blender to godot sprite pipel

3 Jan 17, 2022
A utility control surface for Ableton Live that makes the initialization of a Mixdown quick

Automate Mixdown initialization A script that transfers all the VSTs on your MIDI tracks to a new track so you can freeze your MIDI tracks and then co

Aarnav 0 Feb 23, 2022
Integer sets where all subsets have unique sums

Evil Sums Generation of sets of numbers where all constituents are recoverable from a partial sum.

Charlotte 5 Sep 24, 2022
An alternative app for core Armoury Crate functions.

NoROG DISCLAIMER: Use at your own risk. This is alpha-quality software. It has not been extensively tested, though I personally run it daily on my lap

12 Nov 29, 2022
The only purpose of a byte-sized application is to help you create .desktop entry files for downloaded applications.

Turtle 🐢 The only purpose of a byte-sized application is to help you create .desktop entry files for downloaded applications. As of usual with elemen

TenderOwl 14 Dec 29, 2022
A Classroom Engagement Platform

Project Introduction This is project introduction Setup Setting up Postgres This is the most tricky part when setting up the application. You will nee

Santosh Kumar Patro 1 Nov 18, 2021
Versión preliminar análisis general de Covid-19 en Colombia

Covid_Colombia_v09 Versión: Python 3.8.8 1/ La base de datos del Ministerio de Salud (Minsalud Colombia) está en https://www.datos.gov.co/Salud-y-Prot

Julián Gómez 1 Jan 30, 2022
Pyhexdmp - Python hex dump module

Pyhexdmp - Python hex dump module

25 Oct 23, 2022
A simple interface to help lazy people like me to shutdown/reboot/sleep their computer remotely.

🦥 Lazy Helper ! A simple interface to help lazy people like me to shut down/reboot/sleep/lock/etc. their computer remotely. - USAGE If you're a lazy

MeHDI Rh 117 Nov 30, 2022
Refer'd Resume Scanner

Refer'd Resume Scanner I wanted to share a free resource we built to assist applicants with resume building. Our resume scanner identifies potential s

Refer'd 74 Mar 07, 2022
In this repo, I will put all the code related to data science using python libraries like Numpy, Pandas, Matplotlib, Seaborn and many more.

Python-for-DS In this repo, I will put all the code related to data science using python libraries like Numpy, Pandas, Matplotlib, Seaborn and many mo

1 Jan 10, 2022
LTGen provides classic algorithms used in Language Theory.

LTGen LTGen stands for Language Theory GENerator and provides tools to implement language theory. Command Line LTGen is a collection of tools to imple

Hugues Cassé 1 Jan 07, 2022
Runtime Type Checking in Python 3

typo This package intends to provide run-time type checking for functions annotated with argument type hints (standard library typing module in Python

Ivan Smirnov 26 Dec 13, 2022
Write-ups for CTF Internacional MetaRed 2021 5th stage

MetaRed2021-5th-Writeups Write-ups for CTF Internacional MetaRed 2021 5th stage Easy (15) No Status Category Name Creator(s) 01 Done osint Cybersecuri

UA Cybersecurity 2 Dec 22, 2021
Roblox Limited Sniper For Python

Info this is version 2.1 version 3 will support more options (install python: https://www.python.org) the program will buy any limited item with a pri

1 Dec 09, 2021
Basic cryptography done in Python for study purposes

criptografia Criptografia básica feita em Python para fins de estudo Converte letras em numeros partindo do indice 0 e vice-versa A criptografia é fei

Carlos Eduardo 2 Dec 05, 2021
Learn Python tips, tools, and techniques in around 5 minutes each.

Python shorts Learn Python tips, tools, and techniques in around 5 minutes each. Watch on YouTube Subscribe on YouTube to keep up with all the videos.

Michael Kennedy 28 Jan 01, 2023
Gmvault: Backup and restore your gmail account

Gmvault: Backup and restore your gmail account Gmvault is a tool for backing up your gmail account and never lose email correspondence. Gmvault is ope

Guillaume Aubert 3.5k Jan 01, 2023
A Python wrapper for Matrix Synapse admin API

Synapse-admin-api-python A Python wrapper for Matrix Synapse admin API. Versioning This library now supports up to Synapse 1.45.0, any Admin API intro

Knugi 9 Sep 28, 2022
Do you need a screensaver for CircuitPython? Of course you do

circuitpython_screensaver Do you need a screensaver for CircuitPython? Of course you do Demo video of dvdlogo screensaver: screensaver_dvdlogo.mp4 Dem

Tod E. Kurt 8 Sep 02, 2021