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

Related tags

Miscellaneous Eros
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!'

You might also like...
This repository containing cross-section cut and fill calculations using Python programming language.

cross-section This repository is containing cut and fill calculations for cross-section using Python programming language. This codes is made to calcu

Calculator in command line using python programming language

Calculator in command line using python programming language University of the People Python fundamental Chapter 5 Conditionals and recursion The main

This is the Quiz that I made using Python Programming Language. This can only run in the Terminal

This is the Quiz that I made using Python Programming Language. This can only run in the Terminal

Short, introductory guide for the Python programming language
Short, introductory guide for the Python programming language

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

A topology optimization framework written in Taichi programming language, which is embedded in Python.
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.

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

A basic interpreted programming language written in python

shin A basic interpreted programming language written in python. extension You can use our own extension ".shin". Example: main.shin How to start Clon

A small project of two newbies, who wanted to learn something about Python language programming, via fun way.

HaveFun A small project of two newbies, who wanted to learn something about Python language programming, via fun way. What's this project about? Well.

Python programming language Test

Exercise You are tasked with creating a data-processing app that pre-processes and enriches the data coming from crawlers, with the following requirem

Owner
zxro
zxro
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Advent Of Code 2021 - Python English Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels th

Coral Izquierdo Muñiz 2 Jan 9, 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
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
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
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

Wumi4 4 Jul 20, 2022
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

Kirill Zhosul 14 Nov 3, 2022
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

Ashkan Laei 3 Nov 5, 2021
A simple Programming Language

R.S.O.C. A custom built programming language About The Project R.S.O.C. is a custom built programming language very similar to a low-level 8085 progra

Ravi Maurya 17 Sep 13, 2022