KLL Compiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

simple2.kll 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Name = colemak;
  2. Author = "HaaTa (Jacob Alexander) 2014";
  3. KLL = 0.3;
  4. mydefine = "stuffs here";
  5. mydefine2 = '"stuffs here"'; # For outputting c define strings
  6. mynumber = 414;
  7. mydefine => myCdef;
  8. mydefine2 => myCdef2;
  9. mydefine3 => myCdef3;
  10. mynumber => myCnumber;
  11. usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 );
  12. consCtrlOut => Output_consCtrlSend_capability( consCode : 2 );
  13. noneOut => Output_noneSend_capability();
  14. sysCtrlOut => Output_sysCtrlSend_capability( sysCode : 1 );
  15. myCapability2 => myFunc2();
  16. myCapability3 => myFunc3( myArg1 : 2 );
  17. myCapability => myFunc( myArg1 : 1, myArg2 : 4 );
  18. S0x3 : myCapability2();
  19. S[0x4] : myCapability( 0x8, 0x25 );
  20. S[ 0x7 - 0x9 ] : U"6";
  21. S0x40 : U[0x1-0x4];
  22. S0x12 : U[122] + U[123];
  23. S0x6 : 'abcdDfF'; # TODO
  24. S0x40 : U[0x1];
  25. S0x0B : U["Esc"];
  26. S0x0B :+ U["Q"];
  27. S[ 0x7 - 0x9 ], S[0x2,0x3] : U"6";
  28. S[ 0x2 - 0x9, 0x10 ] :+ U"r";
  29. S0x0B :- U["Esc"];
  30. S[ 0x3 - 0x4 ] + S[ 0x10 ], S[ 0x20 ] : U"Enter";
  31. S127 + S128 : U"0";
  32. S0x41 : CONS[0x30];
  33. S0x42 : CONS["Play"];
  34. S0x43 : CONS0x31;
  35. S0x45 : SYS[0xA0];
  36. S0x46 : SYS["UnDock"];
  37. S0x47 : SYS0xA2;
  38. S[0x48] : None;
  39. S0x30(P) : U"A";
  40. S0x29(P:10ms) : U"A";
  41. S0x28(20) : U"A";
  42. S0x31(H:20ms, R:1s) : U"B";
  43. S0x32(P,H,R) : U"B";