mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 10:29:39 +02:00
* pp2tex and pp2tex.bat moved to main doc directory
This commit is contained in:
parent
0998759caf
commit
1cfdc11178
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -111,8 +111,8 @@ They are used to describe types, for example the type of a variable
|
|||||||
symbol is given by a definition and the result type
|
symbol is given by a definition and the result type
|
||||||
of a expression is given as a definition.
|
of a expression is given as a definition.
|
||||||
They have nothing to do with the definition of a procedure.
|
They have nothing to do with the definition of a procedure.
|
||||||
Definitions are implemented as a object (symtable.pas, tdef and
|
Definitions are implemented as a object (in file \file{symtable.pas},
|
||||||
it's descendents). There are a lot of different
|
\var{tdef} and it's descendents). There are a lot of different
|
||||||
definitions: for example to describe
|
definitions: for example to describe
|
||||||
ordinal types, arrays, pointers, procedures
|
ordinal types, arrays, pointers, procedures
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ occurs.
|
|||||||
\subsection{The first pass}
|
\subsection{The first pass}
|
||||||
|
|
||||||
This is a part of the first pass for a pointer dereferencation
|
This is a part of the first pass for a pointer dereferencation
|
||||||
(\var{p\^\ }), the type determination and some other stuff are left out
|
(\var{p\^\ }), the type determination and some other stuff are left out.
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
procedure firstderef(var p : ptree);
|
procedure firstderef(var p : ptree);
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
5
docs/pp2tex
Normal file
5
docs/pp2tex
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Simply paste a header and footer to the program.
|
||||||
|
cat head.tex > $1.tex
|
||||||
|
cat $1.pp >> $1.tex
|
||||||
|
cat foot.tex >> $1.tex
|
6
docs/pp2tex.bat
Normal file
6
docs/pp2tex.bat
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@echo off
|
||||||
|
rem msdos batch file
|
||||||
|
rem Simply paste a header and footer to the program.
|
||||||
|
type head.tex > %1.tex
|
||||||
|
type %1.pp >> %1.tex
|
||||||
|
type foot.tex >> %1.tex
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
@ -15,7 +15,7 @@ PP=ppc386
|
|||||||
PPOPTS=
|
PPOPTS=
|
||||||
|
|
||||||
# Script to convert the programs to LaTeX examples which can be included.
|
# Script to convert the programs to LaTeX examples which can be included.
|
||||||
PP2TEX=pp2tex
|
PP2TEX=../pp2tex
|
||||||
|
|
||||||
# Script to collect all examples in 1 file.
|
# Script to collect all examples in 1 file.
|
||||||
MAKETEX=make1tex
|
MAKETEX=make1tex
|
||||||
|
Loading…
Reference in New Issue
Block a user