00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_neuronc extends HFile{
00006 function HFile_neuronc(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array("{");
00028 $this->unindent = array("}");
00029
00030
00031
00032 $this->stringchars = array("\"", "'");
00033 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("//");
00039 $this->blockcommenton = array("/*");
00040 $this->blockcommentoff = array("*/");
00041
00042
00043
00044 $this->keywords = array(
00045 "used" => "",
00046 "in" => "",
00047 "programming" => "",
00048 "embedded" => "",
00049 "Neuron" => "",
00050 "(MC3150,3120)" => "",
00051 "chips" => "",
00052 "for" => "1",
00053 "distributed" => "",
00054 "control" => "",
00055 "applications" => "",
00056 "auto" => "1",
00057 "break" => "1",
00058 "case" => "1",
00059 "char" => "1",
00060 "const" => "1",
00061 "continue" => "1",
00062 "default" => "1",
00063 "do" => "1",
00064 "double" => "1",
00065 "else" => "1",
00066 "enum" => "1",
00067 "extern" => "1",
00068 "float" => "1",
00069 "float_type" => "1",
00070 "goto" => "1",
00071 "if" => "1",
00072 "int" => "1",
00073 "long" => "1",
00074 "msg_tag" => "1",
00075 "mtimer" => "1",
00076 "network" => "1",
00077 "quad" => "1",
00078 "register" => "1",
00079 "return" => "1",
00080 "short" => "1",
00081 "signed" => "1",
00082 "sizeof" => "1",
00083 "static" => "1",
00084 "stimer" => "1",
00085 "struct" => "1",
00086 "switch" => "1",
00087 "s32_type" => "1",
00088 "typedef" => "1",
00089 "union" => "1",
00090 "unsigned" => "1",
00091 "void" => "1",
00092 "volatile" => "1",
00093 "when" => "1",
00094 "while" => "1",
00095 "#define" => "1",
00096 "#error" => "1",
00097 "#include" => "1",
00098 "#elif" => "1",
00099 "#if" => "1",
00100 "#line" => "1",
00101 "#else" => "1",
00102 "#ifdef" => "1",
00103 "#pragma" => "1",
00104 "#endif" => "1",
00105 "#ifndef" => "1",
00106 "#undef" => "1",
00107 "addr_table_index" => "2",
00108 "bcd2bin" => "2",
00109 "bin2bcd" => "2",
00110 "eeprom_memcpy" => "2",
00111 "flush_completes" => "2",
00112 "get_tick_count" => "2",
00113 "high_byte" => "2",
00114 "io_changes" => "2",
00115 "io_change_init" => "2",
00116 "io_in" => "2",
00117 "io_in_ready" => "2",
00118 "io_in_request" => "2",
00119 "io_out" => "2",
00120 "io_out_ready" => "2",
00121 "io_out_request" => "2",
00122 "io_preserve_input" => "2",
00123 "io_select" => "2",
00124 "io_set_clock" => "2",
00125 "io_set_direction" => "2",
00126 "io_update_occurs" => "2",
00127 "is_bound" => "2",
00128 "low_byte" => "2",
00129 "make_long" => "2",
00130 "msg_alloc" => "2",
00131 "msg_alloc_priority" => "2",
00132 "msg_cancel" => "2",
00133 "msg_completes" => "2",
00134 "msg_fails" => "2",
00135 "msg_free" => "2",
00136 "msg_receive" => "2",
00137 "msg_send" => "2",
00138 "msg_succeeds" => "2",
00139 "nv_table_index" => "2",
00140 "poll" => "2",
00141 "propagate" => "2",
00142 "reset" => "2",
00143 "resp_alloc" => "2",
00144 "resp_arrives" => "2",
00145 "resp_cancel" => "2",
00146 "resp_free" => "2",
00147 "resp_receive" => "2",
00148 "resp_send" => "2",
00149 "sleep" => "2",
00150 "swap_bytes" => "2",
00151 "timer_expires" => "2",
00152 "touch_bit" => "2",
00153 "touch_byte" => "2",
00154 "touch_first" => "2",
00155 "touch_next" => "2",
00156 "touch_reset" => "2",
00157 "wink" => "2",
00158 "ackd" => "3",
00159 "activate_service_led" => "3",
00160 "auth" => "3",
00161 "authenticated" => "3",
00162 "baud" => "3",
00163 "bind" => "3",
00164 "bit" => "3",
00165 "bitshift" => "3",
00166 "byte" => "3",
00167 "clock" => "3",
00168 "clockedge" => "3",
00169 "config" => "3",
00170 "config_data" => "3",
00171 "ded" => "3",
00172 "dualslope" => "3",
00173 "eeprom" => "3",
00174 "edgedivide" => "3",
00175 "edgelog" => "3",
00176 "far" => "3",
00177 "fastaccess" => "3",
00178 "frequency" => "3",
00179 "infrared" => "3",
00180 "input" => "3",
00181 "input_is_new" => "3",
00182 "input_value" => "3",
00183 "invert" => "3",
00184 "i2c" => "3",
00185 "IO_0" => "3",
00186 "IO_1" => "3",
00187 "IO_2" => "3",
00188 "IO_3" => "3",
00189 "IO_4" => "3",
00190 "IO_5" => "3",
00191 "IO_6" => "3",
00192 "IO_7" => "3",
00193 "IO_8" => "3",
00194 "IO_9" => "3",
00195 "kbaud" => "3",
00196 "leveldetect" => "3",
00197 "magcard" => "3",
00198 "magtrack1" => "3",
00199 "master" => "3",
00200 "max_rate_est" => "3",
00201 "msg_arrives" => "3",
00202 "msg_in" => "3",
00203 "msg_out" => "3",
00204 "msg_tag_index" => "3",
00205 "mux" => "3",
00206 "muxbus" => "3",
00207 "neurowire" => "3",
00208 "nibble" => "3",
00209 "nonbind" => "3",
00210 "nonconfig" => "3",
00211 "nonpriority" => "3",
00212 "numbits" => "3",
00213 "nv_array_index" => "3",
00214 "nv_in_addr" => "3",
00215 "nv_in_index" => "3",
00216 "offchip" => "3",
00217 "offline" => "3",
00218 "onchip" => "3",
00219 "oneshot" => "3",
00220 "output" => "3",
00221 "parallel" => "3",
00222 "period" => "3",
00223 "polled" => "3",
00224 "priority" => "3",
00225 "pulsecount" => "3",
00226 "pulsewidth" => "3",
00227 "quadrature" => "3",
00228 "ram" => "3",
00229 "rate_est" => "3",
00230 "read_only_data" => "3",
00231 "read_only_data2" => "3",
00232 "resp_in" => "3",
00233 "resp_out" => "3",
00234 "select" => "3",
00235 "serial" => "3",
00236 "slave" => "3",
00237 "slave_b" => "3",
00238 "sync" => "3",
00239 "synchronized" => "3",
00240 "system" => "3",
00241 "totalcount" => "3",
00242 "touch" => "3",
00243 "triac" => "3",
00244 "triggeredcount" => "3",
00245 "unackd" => "3",
00246 "unackd_rpt" => "3",
00247 "uninit" => "3",
00248 "wiegand" => "3",
00249 "SNVT_address" => "4",
00250 "SNVT_alarm" => "4",
00251 "SNVT_amp" => "4",
00252 "SNVT_amp_f" => "4",
00253 "SNVT_amp_mil" => "4",
00254 "SNVT_angle" => "4",
00255 "SNVT_angle_deg" => "4",
00256 "SNVT_angle_f" => "4",
00257 "SNVT_angle_vel" => "4",
00258 "SNVT_angle_vel_f" => "4",
00259 "SNVT_area" => "4",
00260 "SNVT_btu_f" => "4",
00261 "SNVT_btu_kilo" => "4",
00262 "SNVT_btu_mega" => "4",
00263 "SNVT_char_ascii" => "4",
00264 "SNVT_chlr_status" => "4",
00265 "SNVT_color" => "4",
00266 "SNVT_config_src" => "4",
00267 "SNVT_count" => "4",
00268 "SNVT_count_f" => "4",
00269 "SNVT_count_inc" => "4",
00270 "SNVT_count_inc_f" => "4",
00271 "SNVT_currency" => "4",
00272 "SNVT_date_cal" => "4",
00273 "SNVT_date_day" => "4",
00274 "SNVT_date_time" => "4",
00275 "SNVT_defr_mode" => "4",
00276 "SNVT_defr_state" => "4",
00277 "SNVT_term" => "4",
00278 "SNVT_density" => "4",
00279 "SNVT_density_f" => "4",
00280 "SNVT_earth_pos" => "4",
00281 "SNVT_elapsed_tm" => "4",
00282 "SNVT_elec_kwhr" => "4",
00283 "SNVT_elec_whr" => "4",
00284 "SNVT_elec_whr_f" => "4",
00285 "SNVT_evap_state" => "4",
00286 "SNVT_file_pos" => "4",
00287 "SNVT_file_req" => "4",
00288 "SNVT_file_status" => "4",
00289 "SNVT_fire_indcte" => "4",
00290 "SNVT_fire_init" => "4",
00291 "SNVT_fire_test" => "4",
00292 "SNVT_flow" => "4",
00293 "SNVT_flow_f" => "4",
00294 "SNVT_flow_mil" => "4",
00295 "SNVT_freq_f" => "4",
00296 "SNVT_freq_hz" => "4",
00297 "SNVT_freq_kilohz" => "4",
00298 "SNVT_freq_milhz" => "4",
00299 "SNVT_grammage" => "4",
00300 "SNVT_grammage_f" => "4",
00301 "SNVT_hvac_emerg" => "4",
00302 "SNVT_hvac_mode" => "4",
00303 "SNVT_hvac_overid" => "4",
00304 "SNVT_hvac_status" => "4",
00305 "SNVT_ISO_7811" => "4",
00306 "SNVT_length" => "4",
00307 "SNVT_length_f" => "4",
00308 "SNVT_length_kilo" => "4",
00309 "SNVT_length_micr" => "4",
00310 "SNVT_length_mil" => "4",
00311 "SNVT_lev_cont" => "4",
00312 "SNVT_lev_cont_f" => "4",
00313 "SNVT_lev_disc" => "4",
00314 "SNVT_lev_percent" => "4",
00315 "SNVT_lux" => "4",
00316 "SNVT_magcard" => "4",
00317 "SNVT_mass" => "4",
00318 "SNVT_mass_f" => "4",
00319 "SNVT_mass_kilo" => "4",
00320 "SNVT_mass_mega" => "4",
00321 "SNVT_mass_mil" => "4",
00322 "SNVT_muldiv" => "4",
00323 "SNVT_multiplier" => "4",
00324 "SNVT_obj_request" => "4",
00325 "SNVT_obj_status" => "4",
00326 "SNVT_occupancy" => "4",
00327 "SNVT_override" => "4",
00328 "SNVT_ph" => "4",
00329 "SNVT_ph_f" => "4",
00330 "SNVT_power" => "4",
00331 "SNVT_power_f" => "4",
00332 "SNVT_power_kilo" => "4",
00333 "SNVT_ppm" => "4",
00334 "SNVT_ppm_f" => "4",
00335 "SNVT_preset" => "4",
00336 "SNVT_press" => "4",
00337 "SNVT_press_f" => "4",
00338 "SNVT_press_p" => "4",
00339 "SNVT_pwr_fact" => "4",
00340 "SNVT_pwr_fact_f" => "4",
00341 "SNVT_res" => "4",
00342 "SNVT_res_f" => "4",
00343 "SNVT_res_kilo" => "4",
00344 "SNVT_rpm" => "4",
00345 "SNVT_scene" => "4",
00346 "SNVT_scene_cfg" => "4",
00347 "SNVT_setting" => "4",
00348 "SNVT_smo_ocscur" => "4",
00349 "SNVT_sound_db" => "4",
00350 "SNVT_sound_db_f" => "4",
00351 "SNVT_speed" => "4",
00352 "SNVT_speed_f" => "4",
00353 "SNVT_speed_mil" => "4",
00354 "SNVT_state" => "4",
00355 "SNVT_str_asc" => "4",
00356 "SNVT_str_int" => "4",
00357 "SNVT_switch" => "4",
00358 "SNVT_telcom" => "4",
00359 "SNVT_temp" => "4",
00360 "SNVT_temp_f" => "4",
00361 "SNVT_temp_p" => "4",
00362 "SNVT_temp_ror" => "4",
00363 "SNVT_temp_setpt" => "4",
00364 "SNVT_therm_mode" => "4",
00365 "SNVT_time_f" => "4",
00366 "SNVT_time_hour" => "4",
00367 "SNVT_time_min" => "4",
00368 "SNVT_time_passed" => "4",
00369 "SNVT_time_sec" => "4",
00370 "SNVT_time_stamp" => "4",
00371 "SNVT_time_zone" => "4",
00372 "SNVT_tod_event" => "4",
00373 "SNVT_trans_table" => "4",
00374 "SNVT_vol" => "4",
00375 "SNVT_vol_f" => "4",
00376 "SNVT_vol_kilo" => "4",
00377 "SNVT_vol_mil" => "4",
00378 "SNVT_volt" => "4",
00379 "SNVT_volt_dbmv" => "4",
00380 "SNVT_volt_f" => "4",
00381 "SNVT_volt_kilo" => "4",
00382 "SNVT_volt_mil" => "4",
00383 "SNVT_zerospan" => "4",
00384 "alarm_type_t" => "5",
00385 "calendar_type_t" => "5",
00386 "chiller_t" => "5",
00387 "config_source_t" => "5",
00388 "currency_t" => "5",
00389 "days_of_week_t" => "5",
00390 "defrost_mode_t" => "5",
00391 "defrost_state_t" => "5",
00392 "defrost_term_t" => "5",
00393 "discrete_levels_t" => "5",
00394 "emerg_t" => "5",
00395 "evap_t" => "5",
00396 "file_request_t" => "5",
00397 "file_status_t" => "5",
00398 "fire_indicator_t" => "5",
00399 "fire_init_t" => "5",
00400 "fire_test_t" => "5",
00401 "hvac_override_t" => "5",
00402 "hvac_t" => "5",
00403 "interp_t" => "5",
00404 "learn_mode_t" => "5",
00405 "object_request_t" => "5",
00406 "occup_t" => "5",
00407 "override_t" => "5",
00408 "priority_level_t" => "5",
00409 "scene_config_t" => "5",
00410 "scene_t" => "5",
00411 "setting_t" => "5",
00412 "telcom_states_t" => "5",
00413 "therm_mode_t" => "5");
00414
00415
00416
00417
00418
00419
00420
00421
00422 $this->linkscripts = array(
00423 "" => "donothing",
00424 "1" => "donothing",
00425 "2" => "donothing",
00426 "3" => "donothing",
00427 "4" => "donothing",
00428 "5" => "donothing");
00429 }
00430
00431
00432 function donothing($keywordin)
00433 {
00434 return $keywordin;
00435 }
00436
00437 }?>