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_ampl extends HFile{
00006 function HFile_ampl(){
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");
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 "and" => "1",
00046 "arc" => "1",
00047 "by" => "1",
00048 "check" => "1",
00049 "cross" => "1",
00050 "close" => "1",
00051 "diff" => "1",
00052 "difference" => "1",
00053 "div" => "1",
00054 "data" => "1",
00055 "display" => "1",
00056 "drop" => "1",
00057 "else" => "1",
00058 "exists" => "1",
00059 "end" => "1",
00060 "forall" => "1",
00061 "fix" => "1",
00062 "function" => "1",
00063 "if" => "1",
00064 "in" => "1",
00065 "inter" => "1",
00066 "intersection" => "1",
00067 "interval" => "1",
00068 "include" => "1",
00069 "less" => "1",
00070 "let" => "1",
00071 "maximize" => "1",
00072 "minimize" => "1",
00073 "min" => "1",
00074 "max" => "1",
00075 "mod" => "1",
00076 "model" => "1",
00077 "node" => "1",
00078 "not" => "1",
00079 "or" => "1",
00080 "objective" => "1",
00081 "option" => "1",
00082 "param" => "1",
00083 "prod" => "1",
00084 "product" => "1",
00085 "print" => "1",
00086 "printf" => "1",
00087 "quit" => "1",
00088 "reset" => "1",
00089 "restore" => "1",
00090 "set" => "1",
00091 "setof" => "1",
00092 "subject" => "1",
00093 "subj" => "1",
00094 "s.t." => "1",
00095 "symdiff" => "1",
00096 "sum" => "1",
00097 "shell" => "1",
00098 "solution" => "1",
00099 "then" => "1",
00100 "to" => "1",
00101 "union" => "1",
00102 "update" => "1",
00103 "unfix" => "1",
00104 "var" => "1",
00105 "write" => "1",
00106 "binary" => "2",
00107 "circular" => "2",
00108 "coeff" => "2",
00109 "coef" => "2",
00110 "cover" => "2",
00111 "dimen" => "2",
00112 "dimension" => "2",
00113 "default" => "2",
00114 "display_1col" => "2",
00115 "display_eps" => "2",
00116 "display_max_2d_cols" => "2",
00117 "display_precison" => "2",
00118 "display_round" => "2",
00119 "display_transpose" => "2",
00120 "display_width" => "2",
00121 "from" => "2",
00122 "gutter_width" => "2",
00123 "integer" => "2",
00124 "Infinity" => "2",
00125 "ordered" => "2",
00126 "obj" => "2",
00127 "objective_precision" => "2",
00128 "omit_zero_cols" => "2",
00129 "omit_zero_rows" => "2",
00130 "output_precision" => "2",
00131 "print_precision" => "2",
00132 "print_round" => "2",
00133 "print_seperator" => "2",
00134 "symbolic" => "2",
00135 "within" => "2",
00136 "abs" => "3",
00137 "acos" => "3",
00138 "acosh" => "3",
00139 "alias" => "3",
00140 "asin" => "3",
00141 "asinh" => "3",
00142 "atan" => "3",
00143 "atan2" => "3",
00144 "atanh" => "3",
00145 "Beta" => "3",
00146 "ceil" => "3",
00147 "cos" => "3",
00148 "card" => "3",
00149 "Cauchy" => "3",
00150 "exp" => "3",
00151 "Exponential" => "3",
00152 "floor" => "3",
00153 "first" => "3",
00154 "Gamma" => "3",
00155 "Irand224" => "3",
00156 "int" => "3",
00157 "log" => "3",
00158 "log10" => "3",
00159 "last" => "3",
00160 "member" => "3",
00161 "Normal" => "3",
00162 "next" => "3",
00163 "nextw" => "3",
00164 "ord" => "3",
00165 "ord0" => "3",
00166 "Poisson" => "3",
00167 "precision" => "3",
00168 "prev" => "3",
00169 "prevw" => "3",
00170 "round" => "3",
00171 "sin" => "3",
00172 "sinh" => "3",
00173 "sqrt" => "3",
00174 "tan" => "3",
00175 "tanh" => "3",
00176 "trunc" => "3",
00177 "Uniform" => "3",
00178 "Uniform01" => "3");
00179
00180
00181
00182
00183
00184
00185
00186
00187 $this->linkscripts = array(
00188 "1" => "donothing",
00189 "2" => "donothing",
00190 "3" => "donothing");
00191 }
00192
00193
00194 function donothing($keywordin)
00195 {
00196 return $keywordin;
00197 }
00198
00199 }?>