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

Related tags

MiscellaneousEros
Overview

EROS EXPIREMENTAL PROGRAMMING LANGUAGE

Eros is a simple syntax programming language built with simple Python code,
allowing for more ease in modification and further expirementation by anyone.

The language currently uses a static file for ease in testing, but this will obviously be
changed to open any type of file type specified. To run, simply put your code in test.es and run main.py.

main.py creates an intepreter space using interpreter.py, which goes through the code and uses
functions.py to carry out the users commands. The design is currently simple but will evolve soon
as much more user expandability is added.

Built by zxro (c) 2021
twitter.com/xozxro

BASIC SYNTAX

VARIABLES


#########################################
### STRINGS

# DYNAMIC - dynamic strings are string variables that can be modified and type sliced after being set

dynamic stringVar = this is a string 123 these are ints 456
print stringVar

# outputs 'this is a string 123 these are ints 456'

# STATIC - static strings are string variables that hold retained data from another variable
# they can be used just like dynamic variables in all other aspects

# they can be used to 'type slice' - extracting only a certain data type out of dynamic strings
# in the future this will be modifyable, making it easy for developers to define their own types in order
# to quickly handle and filter large amounts of data through a one line type slice.

static intVar = stringVar : int
print intVar

# outputs 123 456

#########################################
### ARRAYS

# arrays can be created via segmenting data by any specified token.
# place this token in between brackets when creating the array.
# leave blank to segregate by space or place your data in brackets.
# eg. new [] arr = [x,y,z]

int elem1 = 1
int elem2 = 2
dynamic elem3 = string
new [] arrVar = elem1 elem2 elem3
print arrVar

# outputs [1,2,'string']

# and these will have the same result...

new [,] arrVar = elem1,elem2,elem3
new [-] arrVar = elem1- elem2-elem3
new [] arrVar = [elem1, elem2,elem3]

# TYPE CONVERSION

static intVar = stringVar : int
new [] intVar;

#########################################
### NUMBERS

# INT

new int newInt = 3
print newInt

# outputs 3

# FLOAT

new float newFloat = 3.2
print newFloat

# outputs 3.2

# TYPE CONVERSION
# this will convert typeSliceVar into an integer variable within the programs data array.
# if typeSliceVar includes multiple numbers spaced apart, this will sum them up and return that value.

static typeSliceVar = example : int
int typeSliceVar;

#########################################
### BOOLEANS

new bool isBool = True

#########################################
###

PRINT


### basic string and variable output

print this is a string

# outputs 'this is a string'

dynamic string = 'xyz'
print string

# outputs 'xyz'

### string connetation and type slicing

dynamic string = this is a string with some 8324 numbers and some 3.23 floats
dynamic stringB = and this is another!
print string ++ string : int ++ stringB

# outputs 'this is a string with some 8324 numbers and some 3.23 floats 8324 and this is another!'

Owner
zxro
zxro
Tools I'm building in order to help my investments decisions

b3-tools Tools I'm building in order to help my investments decisions. Based in the REITs I've in my personal portifolio I ran a script that scrapy th

Rafael Cassau 2 Jan 21, 2022
SuperMario - Python programming class ending assignment SuperMario, using pygame

SuperMario - Python programming class ending assignment SuperMario, using pygame

mars 2 Jan 04, 2022
Convert text with ANSI color codes to HTML or to LaTeX.

Convert text with ANSI color codes to HTML or to LaTeX.

PyContribs 326 Dec 28, 2022
Materials and information for my PyCascades 2021 Presentation

Materials and information for PyCascades 2021 Presentation: Sparking Creativity in LED Art with CircuitPython

GeekMomProjects 19 May 04, 2022
Scraper pour les offres de stage Tesla et les notes sur Oasis (Polytech Paris-Saclay) sous forme de bot Discord

Scraper pour les offres de stage Tesla et les notes sur Oasis (Polytech Paris-Saclay) sous forme de bot Discord

Alexandre Malfreyt 1 Jan 21, 2022
A webdav demo using a virtual filesystem that serves a random status of whether a cat in a box is dead or alive.

A webdav demo using a virtual filesystem that serves a random status of whether a cat in a box is dead or alive.

Marshall Conover 2 Jan 12, 2022
Visual Python and C++ nanosecond profiler, logger, tests enabler

Look into Palanteer and get an omniscient view of your program Palanteer is a set of lean and efficient tools to improve the quality of software, for

Damien Feneyrou 1.9k Dec 26, 2022
This program tries to book a tennis court slot in either Southwark Park or Tanner Street Park in Southwark, London.

Book tennis courts in London This program tries to book a tennis court slot in either Southwark Park or Tanner Street Park in Southwark, London. Note:

Daniele 1 Jul 25, 2022
Wisdom Tree is a concentration app i am working on.

Wisdom Tree Wisdom Tree is a tui concentration app I am working on. Inspired by the wisdom tree in Plants vs. Zombies which gives in-game tips when it

NO ONE 241 Jan 01, 2023
qecsim is a Python 3 package for simulating quantum error correction using stabilizer codes.

qecsim qecsim is a Python 3 package for simulating quantum error correction using stabilizer codes.

44 Dec 20, 2022
Open HW & SW for Scanning Electron Microscopes

OpenSEM Project Status: Preliminary The purpose of this project is to create a modern and open-source hardware and software platform for using vintage

Steven Lovegrove 7 Nov 01, 2022
A python package for batch import of resume attachments to be parsed in HrFlow.

HrFlow Importer Description A python package for batch import of resume attachments to be parsed in HrFlow. hrflow-importer is an open-source project

HrFlow.ai (ex: Riminder.net) 3 Nov 15, 2022
inverted pendulum fuzzy control python code (python 2.7.18)

inverted-pendulum-fuzzy-control- inverted pendulum fuzzy control python code (python 2.7.18) We have 3 general functions for 3 main steps: fuzzificati

arian mottaghi 4 May 23, 2022
The ROS publisher/subscriber example packaged as a snap

publisher-subscriber The ROS publisher/subscriber example packaged as a snap, based on ROS Noetic and Ubuntu Core 20. Strictly confined. This example

3 Dec 03, 2021
A system for assigning and grading notebooks

nbgrader Linux: Windows: Forum: Coverage: Cite: A system for assigning and grading Jupyter notebooks. Documentation can be found on Read the Docs. Hig

Project Jupyter 1.2k Dec 26, 2022
Aides to reduce a cheat file with a personal selection of the cheats you want to use.

Retroarch Cheat File Reducer Description Aides to reduce a cheat file with a personal selection of the cheats you want to use. Instructions Copy a sel

1 Jan 09, 2022
PwnDatas-DB-Project(PDDP)

PwnDatas-DB-Project PwnDatas-DB-Project(PDDP) 安裝依賴: pip3 install pymediawiki 使用: cd /opt git https://github.com/JustYoomoon/PwnDatas-DB-Project.git c

21 Jul 16, 2021
Return-Parity-MDP - Towards Return Parity in Markov Decision Processes

Towards Return Parity in Markov Decision Processes Code for the AISTATS 2022 pap

Jianfeng Chi 3 Nov 27, 2022
Semantic Data Management - Property Graphs 📈

SDM - Lab 1 @ UPC 👨🏻‍💻 Table of contents Introduction Property Graph Dataset 1. Introduction This repo is all about what we have done in SDM lab 1

Mohammad Zain Abbas 1 Mar 20, 2022
A nonebot2 plugin, send news information in a picture form.

A nonebot2 plugin, send news information in a picture form.

幼稚园园长 7 Nov 18, 2022