kytschBASIC - BASIC for the modern web

What is kytschBASIC?

kytschBASIC come from an idea I had when reading one of my AmigaBASIC books. I thought "wouldn't it be cool to have a version of BASIC that rendered modern day websites" and so I set out to make it possible.

The first build I did in c++ but I just wasn't happy with the library that I was using for serving the HTML. Don't get me wrong its a good library but it just didn't fit what I was after. I'd seen zephir-lang which lets you build PHP modules and it was something I was keen to play with so I began the port over to zephir.

So to sum up, kytschBASIC lets you write in a version of BASIC that is heavily inspired by AmigaBASIC and it'll render that code as HTML and CSS so it can be viewed via the web. It has support for Jquery also so you can do javascript integration.

What to check it out and get involved, go to the repo here

For more information on kytschBASIC and its language please visit https://kytschbasic.org

A quick example,

LANG "en"
HEAD
LOAD "$ROOT_FOLDER/project/shared/head"
NAME "Welcome | kytschBASIC"
HEAD CLOSE
BODY
MAIN
LOAD "$ROOT_FOLDER/project/shared/header"
DIV "kb-row", "main-content"
DIV "kb-col kb-col-24", "main-content-col"
HEADING 2
PRINT "Welcome to "
PRINT "kytsch","kytsch"
PRINT "BASIC","basic"
HEADING CLOSE
SWRITE
PRINT "An 80s language by an 80s kid for the modern world!"
SWRITE CLOSE
HEADING 3
PRINT "What is kytschBASIC all about?"
HEADING CLOSE
SWRITE
PRINT "kytschBASIC is a PHP module that will "
PRINT "allow you to write BASIC code to render flat html."
SWRITE CLOSE
SWRITE
PRINT "The project is still in its early days"
PRINT " but you can check it out at the link below."
SWRITE CLOSE
LINK "https://github.com/kytschi/kytschBASIC","Checkout the source code",,"_blank"
PRINT "Git repo"
LINK CLOSE
DIV CLOSE
DIV CLOSE
MAIN CLOSE
LOAD "$ROOT_FOLDER/project/shared/footer"
BODY CLOSE
END



Tags