Titik Programming Language/Interpreter Written In Go Lang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.rst
console.go
conversion.go
function.go
helloworld.ttk
info.go
install.rst
interactive.go
lexer.go
main.go
mysql.go
parser.go
reserved.go
strings.go
system.go
util.go
variable.go
web.go

README.rst

titik2

Titik Programming Language/Interpreter Written In Go Lang

Intro

This is for experimental and educational purpose only. ;)

Binary Release (Installation Instructions)

Click here

Install Dependency

go get github.com/go-sql-driver/mysql

Install

go get github.com/six519/titik2

Hello World Code

\
    Multiline comment
    (Hello World Code)
    Source code at: https://github.com/six519/titik2
\

floatVariable = 25.55
strVariable = "Mabuhay " + 'Ka' #concatenation

#function definition
fd hello_world(var)
    intVariable = 0
    #if statement
    if(var == 'Mabuhay Ka')

        #loop statement
        fl (1, 8)
            intVariable = intVariable + 1
            sc(intVariable) #change text color
            p(var) #It will print "Mabuhay Ka" 5 times
            zzz(2000) #sleep for 2 seconds
        lf

        sc(0) #reset the text color
    el
        #else
        p('Not Mabuhay Ka')
    fi
df

hello_world(strVariable) #call function

Hello World Code Output

http://ferdinandsilva.com/static/titik_output.png