diff --git a/heyo.x b/heyo.x index ab5a6ff..482fd53 100644 --- a/heyo.x +++ b/heyo.x @@ -1,9 +1,9 @@ -type integer = 4; -type character = 1; +одреди слово = 1; +одреди број = 4; -text: character = "Heyo world!"; -size: integer = 12; +текст: слово = "Здраво свете!"; +дужина: број = 12; -main (): - system (1, 1, #text, size); - return;; +главна_процедура (): + изврши (1, 1, #текст, дужина); + врати;; diff --git a/xiranda.c b/xiranda.c index 3d3e58e..e881dc1 100644 --- a/xiranda.c +++ b/xiranda.c @@ -58,18 +58,18 @@ int main (void) { /**/int i; - int coin_string = syntax_define (false, false, "\"", "\"", '\\', colour_red, effect_normal); - int coin_type = syntax_define (false, true, "type", " \t\n", '\0', colour_yellow, effect_normal); - int coin_loop = syntax_define (false, true, "loop", " \t\n(:", '\0', colour_yellow, effect_normal); - int coin_if = syntax_define (false, true, "if", " \t\n(", '\0', colour_yellow, effect_normal); - int coin_else = syntax_define (false, true, "else", " \t\n:", '\0', colour_yellow, effect_normal); - int coin_case = syntax_define (false, true, "case", " \t\n(", '\0', colour_yellow, effect_normal); - int coin_return = syntax_define (false, true, "return", " \t\n(;", '\0', colour_yellow, effect_normal); - int coin_import = syntax_define (false, true, "import", " \t\n", '\0', colour_yellow, effect_normal); - int coin_system = syntax_define (false, true, "system", " \t\n(", '\0', colour_yellow, effect_normal); - int coin_number = syntax_define (true, true, "0123456789", " \t\n,.;:()[]#", '\0', colour_blue, effect_normal); - int coin_marker = syntax_define (true, true, "abcdefghijklmnopqrstuvwxyz_", " \t\n,.;:()[]#", '\0', colour_white, effect_normal); - int coin_symbol = syntax_define (true, false, ",.;:=#[]()+-*/%&|!", "", '\0', colour_cyan, effect_normal); + int coin_string = syntax_define (false, false, "\"", "\"", '\\', colour_red, effect_normal); + int coin_type = syntax_define (false, true, "одреди", " \t\n", '\0', colour_yellow, effect_normal); + int coin_loop = syntax_define (false, true, "понови", " \t\n(:", '\0', colour_yellow, effect_normal); + int coin_if = syntax_define (false, true, "ако", " \t\n(", '\0', colour_yellow, effect_normal); + int coin_else = syntax_define (false, true, "иначе", " \t\n:", '\0', colour_yellow, effect_normal); + int coin_case = syntax_define (false, true, "погоди", " \t\n(", '\0', colour_yellow, effect_normal); + int coin_return = syntax_define (false, true, "врати", " \t\n(;", '\0', colour_yellow, effect_normal); + int coin_import = syntax_define (false, true, "учитај", " \t\n", '\0', colour_yellow, effect_normal); + int coin_system = syntax_define (false, true, "изврши", " \t\n(", '\0', colour_yellow, effect_normal); + int coin_number = syntax_define (true, true, "0123456789", " \t\n,.;:()[]#", '\0', colour_blue, effect_normal); + int coin_marker = syntax_define (true, true, "љњертзуиопшђасдфгхјклчћжџцвбнм_", " \t\n,.;:()[]#", '\0', colour_white, effect_normal); + int coin_symbol = syntax_define (true, false, ",.;:=#[]()+-*/%&|!", "", '\0', colour_cyan, effect_normal); buffer = record ();