From: cuz Date: Thu, 22 Jun 2000 21:10:28 +0000 (+0000) Subject: Added sample grc from Maciej X-Git-Tag: V2.12.0~3404 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f09ab689d7bc8d232141cd9ebe89ece45efed2b9;p=cc65 Added sample grc from Maciej git-svn-id: svn://svn.cc65.org/cc65/trunk@109 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/testcode/grc/test.grc b/testcode/grc/test.grc new file mode 100644 index 000000000..ad039242b --- /dev/null +++ b/testcode/grc/test.grc @@ -0,0 +1,36 @@ + +;This is proposed syntax of general GEOS resource file for upcoming resource compiler. + +;(token MENU, topname (will be escaped with _), x,y of top-left corner, bottom-right will be +; counted according to BSW font table (in x) and a multiply 15 (14?) in y) +;Note that MENU is either MENU and SUBMENU +;Note that if you want to use any C operators (like '|', '&' etc.) do it WITHOUT spaces +;between arguments (parser is simple and weak) + + +; format: MENU "name" left,top ALIGN { "itemname" TYPE pointer ... } + +MENU mainMenu 0,0 HORIZONTAL +{ + "sub menu1" SUB_MENU subMenu1 ; goes for _subMenu1 + "quit" MENU_ACTION EnterDeskTop ; goes for _EnterDeskTop +} + +MENU subMenu1 15,0 VERTICAL +{ + "subitem1" MENU_ACTION smenu1 + "mubitem2" MENU_ACTION|DYN_SUB_MENU smenu2 + "subitem3" MENU_ACTION smenu3 +} + +; format: HEADER GEOS_TYPE "dosname" "classname" "version" + +HEADER APPLICATION "123456789 1234567" "Class Name" "V1.0.0" +{ + ; not all fields are required, default and current values will be used + author "Maciej Witkowiak" ; always in quotes! + info "Information text" ; always in quotes! +; date yy mm dd hh ss ; always 5 fields! +; dostype seq ; can be PRG, SEQ, USR + mode c64only ; can be any, 40only, 80only, c64only +}