Yayx
Yayx programming language is begginer friendly programming language. What have yayx:
- Easy syntax
- Dynamic types
- Can be compiled to outhers programming language (GoLang and C)
- Clear documentation
Directory Tree
- src -> Source code of our two interpreters more in README
- .vscode -> Files for visual studio code
- builder -> A little builder of interpreter (soon update)
- std -> A source code of std library
- examples -> Example with Yayx Programming Language
Hello World in Yayx
fn main() {
println("Hello, World!")
}
Helped me
- With writing the interpreter so help me cpython repo and comet repo
Keywords
==============================================
Create function keyword = fn
Example =========================
fn main() { }
==============================================
Return keyword = return
Example =========================
return <VARIABLE OR A DATA>
==============================================
Variable assigment keyword = var
Example =========================
var <NAME OF VARIABLE> = <DATA>
==============================================
Constant variable assigment keyword = cst
Example =========================
cst <NAME OF VARIABLE> = <DATA>
==============================================
True data keyword = true
Example =========================
true ( 1 )
==============================================
False data keyword = false
Example =========================
false ( 0 )
==============================================
If keyword = if
Example =========================
if (<CONDITION>) { }
==============================================
Else keyword = else
Example =========================
if (<CONDITION>) { } else { }
==============================================
Comment: #
Example =========================
# Comment #
/\ /\
Comment Comment
start end
==============================================