Changeset 566cc33 for doc/theses/jiada_liang_MMath
- Timestamp:
- Apr 25, 2024, 3:42:09 PM (12 months ago)
- Branches:
- master
- Children:
- 314c9d8
- Parents:
- 5bc81e9
- Location:
- doc/theses/jiada_liang_MMath
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified doc/theses/jiada_liang_MMath/background.tex ¶
r5bc81e9 r566cc33 1 1 \chapter{Background} 2 \lstnewenvironment{clang}[1][]{\lstset{language=[ANSI]C,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}3 2 4 3 \CFA is a backwards-compatible extension of the C programming language. -
TabularUnified doc/theses/jiada_liang_MMath/relatedwork.tex ¶
r5bc81e9 r566cc33 23 23 \section{Pascal} 24 24 \label{s:Pascal} 25 \lstnewenvironment{pascal}[1][]{\lstset{language=pascal,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}26 25 27 26 Classic Pascal has the \lstinline[language=pascal]{const} declaration binding a name to a constant literal/expression. … … 51 50 52 51 \section{Ada} 53 \lstnewenvironment{ada}[1][]{\lstset{language=[2005]Ada,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},literate={'}{\ttfamily'\!}1}\lstset{#1}}{}54 52 55 53 An Ada enumeration type is a set of ordered unscoped identifiers (enumerators) bound to \emph{unique} \Newterm{literals}.\footnote{% … … 216 214 \section{\CC} 217 215 \label{s:C++RelatedWork} 218 \lstnewenvironment{c++}[1][]{\lstset{language=[GNU]C++,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}219 216 220 217 \CC has the equivalent of Pascal typed @const@ declarations \see{\VRef{s:Pascal}}, with static and dynamic initialization. … … 310 307 \section{C\raisebox{-0.7ex}{\LARGE$^\sharp$}\xspace} % latex bug: cannot use \relsize{2} so use \LARGE 311 308 \label{s:Csharp} 312 \lstnewenvironment{csharp}[1][]{\lstset{language=[Sharp]C,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}313 309 314 310 % https://www.tutorialsteacher.com/codeeditor?cid=cs-mk8Ojx … … 410 406 411 407 \section{Golang} 412 \lstnewenvironment{Go}[1][]{\lstset{language=Go,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}413 408 414 409 Golang provides pseudo-enumeration similar to classic Pascal \lstinline[language=pascal]{const}, binding a name to a constant literal/expression. … … 475 470 476 471 \section{Java} 477 \lstnewenvironment{Java}[1][]{\lstset{language=Java,morekeywords={enum,assert,strictfp},478 escapechar=\$,moredelim=**[is][\color{red}]{!}{!},}\lstset{#1}}{}479 472 480 473 Every enumeration in Java is an enumeration class. … … 591 584 592 585 \section{Rust} 593 \lstnewenvironment{rust}[1][]{\lstset{language=Rust,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}594 586 % https://doc.rust-lang.org/reference/items/enumerations.html 595 587 … … 638 630 639 631 \section{Swift} 640 \lstnewenvironment{swift}[1][]{\lstset{language=Swift,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}641 632 642 633 % https://www.programiz.com/swift/online-compiler … … 997 988 998 989 \section{Python 3.13} 999 \lstnewenvironment{python}[1][]{\lstset{language=Python,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}1000 990 % https://docs.python.org/3/howto/enum.html 1001 991 … … 2160 2150 2161 2151 \section{OCaml} 2162 \lstnewenvironment{ocaml}[1][]{\lstset{language=OCaml,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}2163 2152 2164 2153 % https://ocaml.org/docs/basic-data-types#enumerated-data-types -
TabularUnified doc/theses/jiada_liang_MMath/uw-ethesis.tex ¶
r5bc81e9 r566cc33 95 95 \CFAStyle % CFA code-style 96 96 \lstset{language=cfa,belowskip=-1pt} % set default language to CFA 97 \lstnewenvironment{ada}[1][]{\lstset{language=[2005]Ada,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},literate={'}{\ttfamily'\!}1}\lstset{#1}}{} 98 \lstnewenvironment{c++}[1][]{\lstset{language=[GNU]C++,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 99 \lstnewenvironment{pascal}[1][]{\lstset{language=pascal,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 100 \lstnewenvironment{csharp}[1][]{\lstset{language=[Sharp]C,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 101 \lstnewenvironment{clang}[1][]{\lstset{language=[ANSI]C,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 102 \lstnewenvironment{Go}[1][]{\lstset{language=Go,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 103 \lstnewenvironment{haskell}[1][]{\lstset{language=Haskell,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 104 \lstnewenvironment{Java}[1][]{\lstset{language=Java,morekeywords={enum,assert,strictfp}, 105 escapechar=\$,moredelim=**[is][\color{red}]{!}{!},}\lstset{#1}}{} 106 \lstnewenvironment{rust}[1][]{\lstset{language=Rust,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 107 \lstnewenvironment{swift}[1][]{\lstset{language=Swift,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 108 \lstnewenvironment{python}[1][]{\lstset{language=Python,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 109 \lstnewenvironment{ocaml}[1][]{\lstset{language=OCaml,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{} 110 111 \newsavebox{\myboxA} 112 \newsavebox{\myboxB} 97 113 98 114 \newcommand{\newtermFont}{\emph}
Note: See TracChangeset
for help on using the changeset viewer.