Git Product home page Git Product logo

semicolonlang's Introduction

Semicolon language (SCL)

Update: The language now newly compiles to asm, which means the functions and clib integration was disabled!

Language made just by semicolons and curly brackets

Instructions

Instruction     Arguments
mov   ;         from, to address					
jump  ;;        command number
if    ;;;       address, operator, address2, where to jump if true
count ;;;;      A, operator, B, out	
print ;;;;;     Input address(ASCII int)
exit  ;;;;;;    Exit code
input ;;;;;;;   outAddress
copy  ;;;;;;;;  intieger(;;;;; = 5), outAddress
numIO ;;;;;;;;; Type(1 = I, 2 = O), register number
funcs ;;;;;;;;;;Create functions
call  ;*11		FunctionID - Calls function
custom;*12		Characters* - Custom C code
Clib  ;*13		Custom C Library support(chars)
clear ;*14		Clear the console

SCL Interactive

Launch by:
./scComplier
You can use normal commands as in files but in shell

Hello world

{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;;;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;;;;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;;;;;;}};
{;;;;;;;;{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;}{;;;;;;}};
{;;;;;{;}};
{;;;;;{;;}};
{;;;;;{;;;}};
{;;;;;{;;;}};
{;;;;;{;;;;}};
{;;;;;{;;;;;}};
{;;;;;{;;;;}};
{;;;;;{;;;;;;;}};
{;;;;;{;;;}};
{;;;;;{;;;;;;}};

Functions

Functions are deprecated since the last update

Warning: Author still recommends using jumping because functions are bugged at the moment
Create function 
	{;;;;;;;;;;{x}
	{y}{;;;;;;;;;;}{;;;;;;;;;;}
	{y}{;;;;;;;;;;}{;;;;;;;;;;}
	{z}{;;;;;;;;;;}
	};

	x - Function ID(number)
	y - Any command(Dont add ; at end of the command)
	z - Last command of function

Arguments

	-o [filename.c] -> Changes name of compiled C file
	-i [filename.sl] -> Can be used for changing input file
	-g [complier] -> Change C compiler name when using C compilation integrated
	-gp [args] -> Arguments of compiler if using integrated one(to make space type _)
	-d -> Automaticly deletes C file after compiling
	-x [filename] -> change filename of executable when automatic executing after compiling c
	-c Configuration utility

Compilation

Make the C code by running:
	./scComplier Program.sl
Then compile file by:
	gcc Compiled.c
Run the file:
	./a.out

Use config files

Make new config file by:
	./scComplier -c new
Use it by:
	./scComplier -c [config_name]
Or use default configuration for building by:
	./scComplier -c default

semicolonlang's People

Contributors

stiglcz avatar

Stargazers

poggingfish avatar

Watchers

 avatar

semicolonlang's Issues

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.