ls

simple syscall based programming language from scratch
git clone git://git.kocotian.pl/ls.git
Log | Files | Refs | README | LICENSE

README (869B)


      1 Linux Script
      2 ============
      3 
      4 Linux Script is a simple programming language
      5 based on Linux x86_64 system calls.
      6 
      7 This repository contains programs like:
      8 - LinuxScript Compiler (lsc) - for compiling LinuxScript Code
      9 
     10 LinuxScript Compiler is in very early stage for now, even
     11 cannot handle files. To use compiler you must give LS code to
     12 stdin, and assembly code will be printed to stdout. Also, nasm
     13 compiler is for now required to assemble compiled program.
     14 Example usage:
     15 $ lsc < program.ls > program.asm && nasm -felf64 -o program.o program.asm && \
     16 	ld -o program program.o && ./program
     17 
     18 Example program is shown below.
     19 
     20 A language syntax is similar to B or early C syntax.
     21 This is simple programs which do nothing, but it will compile
     22 using both LinuxScript compiler and C compiler (C compiler may generate
     23 warning):
     24 
     25 main(void)
     26 {
     27 }
     28 
     29 Compile with command shown above.