Giter Site home page Giter Site logo

alphacode's Introduction

alphaCode

a simple interpreted language based on zetaCode and BASIC
made by luc de wit

alpha code is a project started by luc de wit in februari 2020, its based on the programming language "zetaCode" wich was made by joseph catanzarit.

zetaCode aimed to be a simple language, interpreted in python wich looked like BASIC
alphaCode on the other hand aimes for the same but improved, its written in C to gain alot more performance, and it has more advanced features like variables and markers

alpha CLI commands

run a script .ac script:

alpha run folder/example.ac

get current version:
alpha version

commands

alpha code is based on simple comands, that are executed from top to bottom.
however, alpha code is able to change the line it is reading, while executing using the goto command
here is a list of the currently available commands


comments are defined using #'s, and are allowed to put inline after another command
#this is a comment
goto 1 #this is a inline comment

print statements are made using the print keyword, and then the string to print it is also able to print a variable
let age 18
print "hello world"
print age

exit statements quits the program and mentions what the exit code is
the exit code is usually 0 if the program ran normally, it needs 1 int argument
representing the exit code
exit 0

goto statements change the line number, where the program is currently running
this way you can make loops, and functions
#go to line 5
goto 5 

let statements let you create a variable with a name and a value wich can be
a number or a string
let name "your mom"
let age 82

get statements let you get information from the user via console input
and then store it in a variable
get name
#name is now a variable with a name

debug is a command that lets you print every single variable that are
currently available, it doesnt need any arguments
get name
let age 18
debug

alphacode's People

Contributors

justlucdewit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.