Skip to content

Repository files navigation

QKumaScript

QKumaScript is an experimental scripting language using Bison.

Quick Start

// make to build
$ make// run a test script
$ ./qks.exe tests/a1.qks

You can see sample scripts under the tests folder.

BNF Grammar

program::=statement_liststatement_list::=statement*statement::=statement_no_semicolon';'|"if"'('exp')'statement_list_parenelse_part| ( "while"'('exp|"for"'('statement_no_semicolon';'exp';'statement_no_semicolon ) ')'statement_list_parenstatement_no_semicolon::= ( ( "print"|"println"|"debug"|"return"|"var"?VAR'=' )?function_or_exp )?statement_list_paren::='{'statement_list'}'else_part::= ( "else"statement_list_paren )?function_or_exp::="function"'('parameter? ( ','parameter )*')'statement_list_paren|expexp::= ( '!'|'-'|exp ( "**"|'*'|'/'|'%'|'+'|'-'|'<'|"=="|"&&"|"||" ) ) exp|'('exp')'|VAR ( '('argument? ( ','argument )*')' )?|NUM|STRINGargument::=expparameter::=VAR

About

An experimental scripting-language using Bison and Flex.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages