9.3 Codify
9.3 Codify
The codify command takes two arguments: an input file and an output file. It
reads each line of the input file and writes a corresponding line to the output file.
Tutorial
The corresponding line consists of a C macro call containing a string containing
the input line. The command converts all backslashes in input lines to double
Developer
backslashes so as to avoid unwanted interpretations by the C compiler. It also
converts double quotes in the line to backslashed double quotes.
Reference
1 Introduction
Syntax : codify = "codify" s filename s filename
2 Interface
Example: codify header.tex header.c
3 Scanner
The following example demonstrates the transformation.
4 Parser
5 Analyser
Input Line:
6 Tangle
\def\par{\leavevmode\endgraf}% A "hack".
7 Weave
Output Line:
8 Shell
WX("\\def\\par{\\leavevmode\\endgraf}% A \"hack\".");
9 Commands
The codify command was introduced to assist in the development of
10 Glossary
FunnelWeb. It is used to convert longish text files into C code to write them out.
11 References
The C code is then included within the FunnelWeb C program. For example, the
set of TeX definitions that appears at the top of every documentation file was
SEARCH
codified and inserted into the FunnelWeb code so that FunnelWeb would not
have to look for a file containing the definitions at run time.
Webmaster
Copyright Ross N. Williams 1992,1999. All rights reserved.
http://www.ross.net/funnelweb/reference/commands_codify.html [3/3/2000 10:44:10 PM]
Actions web hosting footer
Our web partners:
Web Hosting PHP
Jsp Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Web Hosting
Cheap Web Hosting
Java Hosting
Cheapest Hosting
Quality Web Templates
Best Web Templates
Web Design Templates
Java Web Hosting
Cheap Hosting
Cheap Web Hosting
Jsp Web Hosting
Tomcat Web Hosting
Quality Web Hosting
Best Web Hosting
Java Web Hosting
Actionswebhosting.com Business web hosting
division of Vision Web Hosting Inc. All rights reserved.