Changeset a1e67dd for doc/LaTeXmacros


Ignore:
Timestamp:
Oct 26, 2016, 11:03:01 AM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
77971f6
Parents:
f0121d7 (diff), fe7b281 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into tuples

Conflicts:

src/Parser/parser.cc
src/Parser/parser.yy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    rf0121d7 ra1e67dd  
    11%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
    2 %% 
     2%%
    33%% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    44%%
    55%% The contents of this file are covered under the licence agreement in the
    66%% file "LICENCE" distributed with Cforall.
    7 %% 
    8 %% common.tex -- 
    9 %% 
     7%%
     8%% common.tex --
     9%%
    1010%% Author           : Peter A. Buhr
    1111%% Created On       : Sat Apr  9 10:06:17 2016
     
    4141\newcommand{\CCeleven}{\rm C\kern-.1em\hbox{+\kern-.25em+}11\xspace} % C++11 symbolic name
    4242\newcommand{\Celeven}{C11\xspace}               % C11 symbolic name
     43\newcommand{\Csharp}{\rm C\hbox{\#}\xspace} % C# symbolic name
     44
    4345
    4446%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    124126\newcommand{\@sIndex}[2][\@empty]{#2\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi}
    125127
    126 % inline text and code index (cannot use ©)
     128% inline text and code index (cannot use �)
    127129\newcommand{\Indexc}[1]{\lstinline$#1$\index{#1@\lstinline$#1$}}
    128 % code index (cannot use ©)
     130% code index (cannot use �)
    129131\newcommand{\indexc}[1]{\index{#1@\lstinline$#1$}}
    130132
     
    226228
    227229% CFA programming language, based on ANSI C (with some gcc additions)
    228 \lstdefinelanguage{CFA}[ANSI]{C}{
    229         morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto,
    230                 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__,
    231                 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert,
    232                 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,},
     230\lstdefinelanguage{Pseudo}{
     231        morekeywords={string,uint,int,bool,float},%
     232        sensitive=true,%
     233        morecomment=[l]{//},%
     234        morecomment=[s]{/*}{*/},%
     235        morestring=[b]',%
     236        morestring=[b]",%
     237        morestring=[s]{`}{`},%
    233238}%
    234239
    235240\lstset{
    236 language=CFA,
     241language=Pseudo,
    237242columns=fullflexible,
    238 basicstyle=\linespread{0.9}\sf,                 % reduce line spacing and use sanserif font
    239 stringstyle=\tt,                                                % use typewriter font
    240 tabsize=4,                                                              % 4 space tabbing
     243basicstyle=\linespread{0.9}\tt\small,           % reduce line spacing and use typewriter font
     244stringstyle=\sf\color{Mahogany},                        % use sanserif font
     245commentstyle=\itshape\color{OliveGreen},                % green and italic comments
     246tabsize=4,                                                      % 4 space tabbing
    241247xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
    242 extendedchars=true,                                             % allow ASCII characters in the range 128-255
    243 escapechar=§,                                                   % escape to latex in CFA code
     248extendedchars=true,                                     % allow ASCII characters in the range 128-255
     249escapechar=§,                                           % escape to latex in CFA code
    244250mathescape=true,                                                % allow $...$ LaTeX math escapes in code
    245 %keepspaces=true,                                               % 
     251%keepspaces=true,                                               %
    246252showstringspaces=false,                                 % do not show spaces with cup
    247 showlines=true,                                                 % show blank lines at end of code
    248 aboveskip=4pt,                                                  % spacing above/below code block
     253showlines=true,                                         % show blank lines at end of code
     254aboveskip=4pt,                                          % spacing above/below code block
    249255belowskip=3pt,
    250256moredelim=**[is][\color{red}]{®}{®},    % red highlighting
     
    253259moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords
    254260% replace/adjust listing characters that look bad in sanserif
    255 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1
     261literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1
    256262        {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
    257263        {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2,
    258264}%
    259265
     266% CFA programming language, based on ANSI C (with some gcc additions)
     267\lstdefinelanguage{CFA}[ANSI]{C}{
     268        morekeywords=[1]{_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto,
     269                _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__,
     270                fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert,
     271                _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,},
     272        morekeywords=[2]{mutex,nomutex,thread,wait,signal,accept,monitor}
     273}%
     274
     275\lstset{
     276language=CFA,
     277columns=fullflexible,
     278basicstyle=\linespread{0.9}\tt\small,           % reduce line spacing and use typewriter font
     279keywordstyle=[2]\color{blue},                           % second set of keywords for concurency
     280stringstyle=\sf\color{Mahogany},                        % use sanserif font
     281commentstyle=\itshape\color{OliveGreen},                % green and italic comments
     282tabsize=4,                                                      % 4 space tabbing
     283xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
     284extendedchars=true,                                     % allow ASCII characters in the range 128-255
     285escapechar=§,                                           % escape to latex in CFA code
     286mathescape=true,                                                % allow $...$ LaTeX math escapes in code
     287%keepspaces=true,                                               %
     288showstringspaces=false,                                 % do not show spaces with cup
     289showlines=true,                                         % show blank lines at end of code
     290aboveskip=4pt,                                          % spacing above/below code block
     291belowskip=3pt,
     292moredelim=**[is][\color{red}]{®}{®},    % red highlighting
     293moredelim=**[is][\color{blue}]{ß}{ß},   % blue highlighting
     294moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting
     295moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords
     296% replace/adjust listing characters that look bad in sanserif
     297literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1
     298        {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
     299        {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2,
     300}%
     301
    260302\lstMakeShortInline©    % single-character for \lstinline
     303
    261304
    262305\let\Oldthebibliography\thebibliography
Note: See TracChangeset for help on using the changeset viewer.