Skip to content

sty00A4/baselang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Baselang

Introduction

Baselang is a high level, dynamically typed programming language written completely in python. The whole language is compressed in one file baselang.py.

Syntax

The grammar has some Lua-inspired syntax with the keywords then, do and end, but also has statements like a = 1 which would assign the number 1 to the variable a.

The whole grammar is explained in the grammar.txt file, though it might a bit hard to understand at first

TYPES example
number 1, 2, 6.9, ...
null null
boolean true / false
string "text..."
list [4, false, "text", ...]
table {"a": 1, "b": true}

Assigment

[identifier] = [expression] >>> returns [value] from [expression].

no full tutorial

About

an interpreted programming language made in python, following and expanding upon a youtube tutorial series made by CodePulse (https://www.youtube.com/watch?v=Eythq9848Fg&list=PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published