8000 GitHub - xunicatt/etalang: interpreted programming language
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xunicatt/etalang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eta-lang(.n)

eta is a lightweight, interpreted language with automatic memory management and a delightfully minimal syntax. this project is currently in alpha stages.

dependenices

install:

macos

brew install libffi

linux

#Debian/Ubuntu
sudo apt install libffi-dev

#RHEL/Fedora
sudo dnf install libffi-devel

#Arch
sudo pacman -S libffi

syntax

checkout example/ directory for language syntax

build

make #to build and install
make uninstall #to uninstall

eta #for repl
eta <filename>.n #for file input

inbuilt functions

  • lib(...): loads a dynamic library
  • os(...): get OS platform name, ex: "linux", "darwin"
  • print(...): prints elements to the console
  • println(...): same as print() but shift the cursor to new line
  • len(...): get the length for string and array type
  • type_of(...): returns the type in string
  • push(...): pushes an element into an array
  • pop(...): pop an element from array
  • slice(...): can be used to slice an array
  • to_int(...): typecasts to int
  • to_float(...): typecasts to float
  • read_int(): reads an integer from stdin
  • read_float(): reads an float from stdin
  • read_string(): reads an string from stdin
  • clone(...): creates an clone of a variable

About

interpreted programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0