# Mathematica

res_word_chars: &letters $ &
comment1:
comment2: (* *)
quote2: " "


# Translations for some of the most common Mathematica keywords. Not all of
# them, because there are too many.

# +word   => word -> {\\ttb{}word}
# ~word	  => word -> {\\tts{}word}
# $x ->   => x    -> \\(y\\)
# x	y => x    -> y

+Abort
+And
+Append
+AppendTo
+Apply
+Array
+Assert
+Begin
+BeginPackage
+Block
+Break
+Chop
+Continue
+Do
+End
+EndPackage
+False
+For
+Function
+If
+Join
+Length
+Map
+Module
+Needs
+Not
+Part
+Prepend
+Print
+Return
+Scan
+Switch
+Table
+Take
+True
+Union
+Which
+While

# Mathematical translations.

${     \{
$}     \}
$<     <
$>     >
$!=    \neq
$==    \equiv
$<=    \le
$>=    \ge
$->    \rightarrow
$&&    \land
$||    \lor
$**    \otimes
$<>    \bowtie