| 1 |
; TextPad syntax definition file for ASCEND 0.9.6 |
| 2 |
; Copyright (C) 2006 Carnegie Mellon University |
| 3 |
; John Pye <john.pye@student.unsw.edu.au> |
| 4 |
; |
| 5 |
; |
| 6 |
; Copy this file to c:\Program Files\TextPad 4\samples |
| 7 |
; then add a new document class to TextPad, and select this |
| 8 |
; file as the syntax definition. |
| 9 |
; |
| 10 |
; Please inform John Pye about errors or omissions at the address above. |
| 11 |
; |
| 12 |
|
| 13 |
C=1 |
| 14 |
|
| 15 |
[Syntax] |
| 16 |
Namespace1 = 6 |
| 17 |
IgnoreCase = No |
| 18 |
KeyWordLength = |
| 19 |
BracketChars = {[()]} |
| 20 |
;;;;;;;; Operator and then Delimiter characters ;;;; @ is first delimiter char |
| 21 |
OperatorChars = -+*/<>!~%^&|=@`.:,; |
| 22 |
PreprocStart = |
| 23 |
SyntaxStart = |
| 24 |
SyntaxEnd = |
| 25 |
HexPrefix = 0x |
| 26 |
CommentStart = (* |
| 27 |
CommentEnd = *) |
| 28 |
CommentStartAlt = NOTES |
| 29 |
CommentEndAlt = END NOTES |
| 30 |
SingleComment = |
| 31 |
SingleCommentCol = |
| 32 |
SingleCommentAlt = |
| 33 |
SingleCommentColAlt = |
| 34 |
SingleCommentEsc = |
| 35 |
StringsSpanLines = No |
| 36 |
StringStart = { |
| 37 |
StringEnd = } |
| 38 |
StringAlt = " |
| 39 |
StringEsc = \ |
| 40 |
CharStart = |
| 41 |
CharEnd = |
| 42 |
CharEsc = |
| 43 |
|
| 44 |
[Keywords 1] |
| 45 |
ADD |
| 46 |
AND |
| 47 |
ALIASES |
| 48 |
ARE_ALIKE |
| 49 |
ARE_THE_SAME |
| 50 |
ARE_NOT_THE_SAME |
| 51 |
ASSERT |
| 52 |
ATOM |
| 53 |
CALL |
| 54 |
CASE |
| 55 |
CARD |
| 56 |
CHECK |
| 57 |
CHOICE |
| 58 |
CONSTANT |
| 59 |
CONDITIONAL |
| 60 |
CREATE |
| 61 |
DATA |
| 62 |
DEFAULT |
| 63 |
DEFINITION |
| 64 |
DIMENSIONLESS |
| 65 |
DIMENSION |
| 66 |
DO |
| 67 |
ELSE |
| 68 |
END |
| 69 |
FIX |
| 70 |
FOR |
| 71 |
FREE |
| 72 |
IF |
| 73 |
IN |
| 74 |
INTERSECTION |
| 75 |
IS_A |
| 76 |
IS_REFINED_TO |
| 77 |
MAX |
| 78 |
MAXIMIZE |
| 79 |
METHOD |
| 80 |
METHODS |
| 81 |
MIN |
| 82 |
MINIMIZE |
| 83 |
MODEL |
| 84 |
NOTES |
| 85 |
OR |
| 86 |
OTHERWISE |
| 87 |
PROVIDE |
| 88 |
PROD |
| 89 |
REPLACE |
| 90 |
REQUIRE |
| 91 |
REFINES |
| 92 |
RUN |
| 93 |
SATISFIED |
| 94 |
SELECT |
| 95 |
SELF |
| 96 |
STUDY |
| 97 |
STOP |
| 98 |
SUCH_THAT |
| 99 |
SUM |
| 100 |
SWITCH |
| 101 |
THEN |
| 102 |
UNIVERSAL |
| 103 |
UNION |
| 104 |
USE |
| 105 |
WHEN |
| 106 |
WHERE |
| 107 |
WITH_VALUE |
| 108 |
WILL_BE |
| 109 |
WILL_BE_THE_SAME |
| 110 |
WILL_NOT_BE_THE_SAME |
| 111 |
|
| 112 |
[Keywords 2] |
| 113 |
;;; names from standard library |
| 114 |
constant |
| 115 |
critical_compressibility |
| 116 |
acentric_factor |
| 117 |
UNIFAC_size |
| 118 |
Wilson_constant |
| 119 |
vapor_pressure_constant |
| 120 |
factor_constant |
| 121 |
molar_weight_constant |
| 122 |
atomic_mass_constant |
| 123 |
temperature_constant |
| 124 |
boiling_temperature |
| 125 |
critical_temperature |
| 126 |
reference_temperature |
| 127 |
UNIFAC_a |
| 128 |
pressure_constant |
| 129 |
critical_pressure |
| 130 |
reference_pressure |
| 131 |
molar_volume_constant |
| 132 |
critical_volume |
| 133 |
reference_molar_volume |
| 134 |
reference_mass_density |
| 135 |
molar_energy_constant |
| 136 |
reference_molar_energy |
| 137 |
enthalpy_of_formation_constant |
| 138 |
enthalpy_of_formation_constant |
| 139 |
heat_of_vaporization_constant |
| 140 |
Wilson_energy_constant |
| 141 |
molar_entropy_constant |
| 142 |
reference_molar_entropy |
| 143 |
heat_capacity_constant |
| 144 |
heat_capacity_a_constant |
| 145 |
heat_capacity_b_constant |
| 146 |
heat_capacity_c_constant |
| 147 |
heat_capacity_d_constant |
| 148 |
gas_constant |
| 149 |
gravity_constant |
| 150 |
circle_constant |
| 151 |
speed_of_light |
| 152 |
planck_constant |
| 153 |
avogadro_constant |
| 154 |
permittivity_constant |
| 155 |
permeability_constant |
| 156 |
electron_charge |
| 157 |
electron_mass |
| 158 |
proton_mass |
| 159 |
boolean_start_true |
| 160 |
boolean_start_false |
| 161 |
start_true |
| 162 |
start_false |
| 163 |
free_energy_of_formation_constant |
| 164 |
permeability_constant |
| 165 |
factor |
| 166 |
distance |
| 167 |
pressure |
| 168 |
area |
| 169 |
volume |
| 170 |
temperature |
| 171 |
energy |
| 172 |
volume_rate |
| 173 |
frequency |
| 174 |
factor |
| 175 |
|
| 176 |
[Keywords 3] |
| 177 |
;;;; standard methods |
| 178 |
default_self |
| 179 |
specify |
| 180 |
values |
| 181 |
self_test |
| 182 |
ClearAll |
| 183 |
bound_self |
| 184 |
scale_self |
| 185 |
reset |
| 186 |
|
| 187 |
[Keywords 4] |
| 188 |
;;; builtin constants |
| 189 |
FALSE |
| 190 |
TRUE |
| 191 |
real_constant |
| 192 |
boolean |
| 193 |
symbol |
| 194 |
integer |
| 195 |
real |
| 196 |
;;; builtin atomsrelation |
| 197 |
logic_relation |
| 198 |
solver_var |
| 199 |
lower_bound |
| 200 |
upper_bound |
| 201 |
nominal |
| 202 |
included |
| 203 |
message |
| 204 |
fixed |
| 205 |
boolean_var |
| 206 |
generic_real |
| 207 |
solver_int |
| 208 |
relaxed |
| 209 |
is_zero |
| 210 |
solver_binary |
| 211 |
solver_semi |
| 212 |
|
| 213 |
[Keywords 5] |
| 214 |
;;; math functions |
| 215 |
abs |
| 216 |
arccos |
| 217 |
arcsin |
| 218 |
arctan |
| 219 |
sin |
| 220 |
cos |
| 221 |
tan |
| 222 |
sinh |
| 223 |
cosh |
| 224 |
tanh |
| 225 |
arcsinh |
| 226 |
arccosh |
| 227 |
arctanh |
| 228 |
erf |
| 229 |
exp |
| 230 |
ln |
| 231 |
lnm |
| 232 |
log10 |
| 233 |
|
| 234 |
[Keywords 6] |
| 235 |
;;; standard atoms |
| 236 |
bound_width |
| 237 |
scaling_constant |
| 238 |
ode_counter |
| 239 |
obs_counter |
| 240 |
real_parameter |
| 241 |
length_parameter |
| 242 |
positive_variable |
| 243 |
variable |
| 244 |
fraction |
| 245 |
positive_factor |
| 246 |
small_factor |
| 247 |
small_positive_factor |
| 248 |
reduced_pressure |
| 249 |
exp_sub |
| 250 |
power_sub |
| 251 |
inverse_temperature |
| 252 |
force |
| 253 |
vapor_pressure |
| 254 |
k_constant |
| 255 |
molar_mass |
| 256 |
molar_rate |
| 257 |
mass |
| 258 |
mole_scale |
| 259 |
mole |
| 260 |
mass_rate |
| 261 |
molar_rate_scale |
| 262 |
conc_rate |
| 263 |
mole_fraction |
| 264 |
mass_fraction |
| 265 |
molar_volume |
| 266 |
volume_scale |
| 267 |
volume_rate_scale |
| 268 |
volume_rate_square |
| 269 |
volume_expansivity |
| 270 |
molar_density |
| 271 |
mass_density |
| 272 |
molar_energy |
| 273 |
energy_scale |
| 274 |
energy_rate_scale |
| 275 |
energy_rate |
| 276 |
heat_capacity |
| 277 |
molar_energy_rate |
| 278 |
molar_entropy |
| 279 |
entropy |
| 280 |
entropy_rate |
| 281 |
conc_rate |
| 282 |
partition_coefficient |
| 283 |
monetary_unit |
| 284 |
cost_per_volume |
| 285 |
cost_per_mass |
| 286 |
cost_per_time |
| 287 |
cost_per_energy |
| 288 |
inverse_area |
| 289 |
angle |
| 290 |
solid_angle |
| 291 |
time |
| 292 |
speed |
| 293 |
acceleration |
| 294 |
viscosity |
| 295 |
thermal_conductivity |
| 296 |
diffusivity |
| 297 |
voltage |
| 298 |
resistance |
| 299 |
current |
| 300 |
capacitance |
| 301 |
inductance |
| 302 |
magnetic_field |
| 303 |
electric_field |
| 304 |
delta_distance |
| 305 |
delta_temperature |
| 306 |
delta_mass |
| 307 |
delta_mole |
| 308 |
delta_mass_rate |
| 309 |
delta_molar_rate |
| 310 |
delta_volume_rate |
| 311 |
delta_energy_rate |
| 312 |
delta_molar_energy_rate |
| 313 |
delta_entropy_rate |
| 314 |
mass_sec |
| 315 |
mole_sec |