KXStudio Website https://kx.studio/
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.

gwbasic.php 5.2KB

11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. /*************************************************************************************
  3. * gwbasic.php
  4. * ----------
  5. * Author: José Gabriel Moya Yangüela (josemoya@gmail.com)
  6. * Copyright: (c) 2010 José Gabriel Moya Yangüela (http://doc.apagada.com)
  7. * Release Version: 1.0.8.10
  8. * Date Started: 2010/01/30
  9. *
  10. * GwBasic language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * REM was not classified as comment.
  15. * APPEND and RANDOM missing.
  16. *
  17. *************************************************************************************
  18. *
  19. * This file is part of GeSHi.
  20. *
  21. * GeSHi is free software; you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation; either version 2 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * GeSHi is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with GeSHi; if not, write to the Free Software
  33. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34. *
  35. ************************************************************************************/
  36. $language_data = array (
  37. 'LANG_NAME' => 'GwBasic',
  38. 'COMMENT_SINGLE' => array(1 => "'", 2=> "REM"),
  39. 'COMMENT_MULTI' => array(),
  40. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  41. 'QUOTEMARKS' => array('"'),
  42. 'ESCAPE_CHAR' => '',
  43. 'KEYWORDS' => array(
  44. /* Statements */
  45. 1 => array('END','FOR','NEXT','DATA','INPUT','DIM','READ','LET',
  46. 'GOTO','RUN','IF','RESTORE','GOSUB','RETURN','REM',
  47. 'STOP','PRINT','CLEAR','LIST','NEW','ON','WAIT','DEF',
  48. 'POKE','CONT','OUT','LPRINT','LLIST','WIDTH','ELSE',
  49. 'TRON','TROFF','SWAP','ERASE','EDIT','ERROR','RESUME',
  50. 'DELETE','AUTO','RENUM','DEFSTR','DEFINT','DEFSNG',
  51. 'DEFDBL','LINE','WHILE','WEND','CALL','WRITE','OPTION',
  52. 'RANDOMIZE','OPEN','CLOSE','LOAD','MERGE','SAVE',
  53. 'COLOR','CLS','MOTOR','BSAVE','BLOAD','SOUND','BEEP',
  54. 'PSET','PRESET','SCREEN','KEY','LOCATE','TO','THEN',
  55. 'STEP','USR','FN','SPC','NOT','ERL','ERR','STRING',
  56. 'USING','INSTR','VARPTR','CSRLIN','POINT','OFF',
  57. 'FILES','FIELD','SYSTEM','NAME','LSET','RSET','KILL',
  58. 'PUT','GET','RESET','COMMON','CHAIN','PAINT','COM',
  59. 'CIRCLE','DRAW','PLAY','TIMER','IOCTL','CHDIR','MKDIR',
  60. 'RMDIR','SHELL','VIEW','WINDOW','PMAP','PALETTE','LCOPY',
  61. 'CALLS','PCOPY','LOCK','UNLOCK','RANDOM','APPEND',
  62. ),
  63. 2 => array(
  64. /* Functions */
  65. 'CVI','CVS','CVD','MKI','MKS','MKD','ENVIRON',
  66. 'LEFT','RIGHT','MID','SGN','INT','ABS',
  67. 'SQR','SIN','LOG','EXP','COS','TAN','ATN',
  68. 'FRE','INP','POS','LEN','STR','VAL','ASC',
  69. 'CHR','PEEK','SPACE','OCT','HEX','LPOS',
  70. 'CINT','CSNG','CDBL','FIX','PEN','STICK',
  71. 'STRIG','EOF','LOC','LOF'
  72. ),
  73. 3 => array(
  74. /* alpha Operators */
  75. 'AND','OR','XOR','EQV','IMP','MOD'
  76. ),
  77. 4 => array(
  78. /* parameterless functions */
  79. 'INKEY','DATE','TIME','ERDEV','RND'
  80. )
  81. ),
  82. 'SYMBOLS' => array(
  83. 0 => array(
  84. '>','=','<','+','-','*','/','^','\\'
  85. ),
  86. 1 => array(
  87. '?'
  88. )
  89. ),
  90. 'CASE_SENSITIVE' => array(
  91. GESHI_COMMENTS => false,
  92. 1 => false,
  93. 2 => false,
  94. 3 => false,
  95. 4 => false
  96. ),
  97. 'STYLES' => array(
  98. 'KEYWORDS' => array(
  99. 1 => 'color: #00a1a1;font-weight: bold',
  100. 2 => 'color: #000066;font-weight: bold',
  101. 3 => 'color: #00a166;font-weight: bold',
  102. 4 => 'color: #0066a1;font-weight: bold'
  103. ),
  104. 'COMMENTS' => array(
  105. 1 => 'color: #808080;',
  106. 2 => 'color: #808080;'
  107. ),
  108. 'BRACKETS' => array(
  109. 0 => 'color: #66cc66;'
  110. ),
  111. 'STRINGS' => array(
  112. 0 => 'color: #ff0000;'
  113. ),
  114. 'NUMBERS' => array(
  115. 0 => 'color: #cc66cc;'
  116. ),
  117. 'METHODS' => array(
  118. ),
  119. 'SYMBOLS' => array(
  120. /* Same as KEYWORDS[3] (and, or, not...) */
  121. 0 => 'color: #00a166;font-weight: bold',
  122. 1 => 'color: #00a1a1;font-weight: bold',
  123. ),
  124. 'ESCAPE_CHAR' => array(
  125. 0 => 'color: #000099;'
  126. ),
  127. 'SCRIPT' => array(
  128. ),
  129. 'REGEXPS' => array(
  130. 1 => 'color: #708090'
  131. )
  132. ),
  133. 'URLS' => array(
  134. 1 => '',
  135. 2 => '',
  136. 3 => '',
  137. 4 => '',
  138. ),
  139. 'OOLANG' => false,
  140. 'OBJECT_SPLITTERS' => array(
  141. ),
  142. 'REGEXPS' => array(
  143. 1 => '^[0-9]+ '
  144. ),
  145. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  146. 'SCRIPT_DELIMITERS' => array(
  147. ),
  148. 'HIGHLIGHT_STRICT_BLOCK' => array(
  149. )
  150. );
  151. ?>