FreeBE/tgui/html.frt

264 lines
4.4 KiB
Forth
Raw Permalink Blame History

#
# This file sets the behavior of the txh generator
#
# Lines starting with # or spaces are skiped except in strings or in [Generate]
# Be carefull with [ it delimits sections!
#
[Configuration]
#
# No external program is needed!
# @.html means: Copy the temporal file to xxxxx.html
#
CommandLine=@.html
Name="Direct HTML 3.X format"
[Delimiters]
# Up to 11 characters
SectionStart=/**[txh]**
# Up to 11 characters
SectionEnd=*********/
[Variables]
#
# Up to 16 definitions
#
# Codes for the behavior of the definitions:
# 1 Normal, put the content if found.
# 2 Repeat, use the last value found in the file, ~no is an exeption, ~clear stops
# 3 If not found replace by the prototype.
# 4 If not found replace by the class.
# 5 If not found replace by the name of the function
# 6 It disables the node generation for this comment. The variable is
# stored in the first variable that have associations and is in the comment.
#
# Additionally there are 2 special variables:
# 90 Name of the file
# 91 Line number of the end of the comment
# 92 Name of the var 0 in the format: ~0 ~~Distinguish{(~Distinguish)~} (node name)
#
# 0 The first variable is the main index variable
#
AddDefinition=Function,5
# 1
AddDefinition=Class,4
# 2
AddDefinition=Include,2
# 3
AddDefinition=Module,2
# 4
AddDefinition=Prototype,3
# 5
AddDefinition=Description,1
# 6
AddDefinition=Return,1
# 7
AddDefinition=Example,1
# 8
AddDefinition=Comments,6
#
# It says what variable is added to distinguish between 2 vars 0 that are equal
#
Distinguish=1
[Associations]
#
# Up to 8 associations
#
# The associations are between the 0 variable and another variable.
#
# Name in main menu, node, variable, optional to add to each node
#
#AddAssoc=List by modules,Modules,3
AddAssoc=List by files,Files,90
[Replace]
#
# All must be delimited by ", they can be used in the GenMain section
#
# Title of the HTML
Constant="FreeBE/AF driver for TGUI9440AGi"
# Description for the help
Constant="This document describes the functions implemented in the
TGUI9440AGi's FreeBE/AF driver.
@p
This document applies to version 1.0 of the driver.
@p"
[Commands]
#
# You can enclose these values between " to make more clear where
# they start and end. Use \n,\r,\t and \" like in C. Use \ at the
# end to concatenate like in C.
#
# @p = end of paragraph
#
EndOfPar="<p>"
#
# @* = break line
#
BreakLine="<br>"
#
# @{value} is the special cross ref.
# ~0 Is the visible name of a reference
# ~1 Is the real name of a reference
#
CrossRef="<a href=\"#~1\">~0</a>"
#
# What we must get from a @@ sequence
#
Double@="@"
[DefinedCommands]
#
# The format is @<name>{parameters ...}
#
subtitle="<Font Size=+1><u>~0</u></Font><p>"
pre=<pre>
/pre=</pre>
#
# This section says how to translate ASCIIs
#
[ASCIIConvert]
<EFBFBD>=&aacute;
<EFBFBD>=&eacute;
<EFBFBD>=&iacute;
<EFBFBD>=&oacute;
<EFBFBD>=&uacute;
<EFBFBD>=&ntilde;
<EFBFBD>=&Ntilde;
<EFBFBD>=&iexcl;
<EFBFBD>=&iquest;
<EFBFBD>=&auml;
<EFBFBD>=&euml;
<EFBFBD>=&iuml;
<EFBFBD>=&ouml;
<EFBFBD>=&uuml;
<EFBFBD>=&Uuml;
<EFBFBD>=&agrave;
<EFBFBD>=&egrave;
<EFBFBD>=&igrave;
<EFBFBD>=&ograve;
<EFBFBD>=&ugrave;
<=&lt;
>=&gt;
#
# Use ~number to use one variable
# Use ~~number{} for conditional, all the code inside {} will become
# conditional
# This section isn't passed for the macro expansion so here you are
# free to use special commands for the formater.
#
[GenNode]
<p><hr></p>
<a name="~92"></a>
<center><Font Size=+2>~0</Font> (~90 ~91)</center>
<Font Size=+1><u>Syntax</u></Font><p>
~~2{
<pre>
# This line is a comment, but the next is code
#include &lt;~2&gt;
</pre>
~}
~~4{
<pre>
~4;
</pre>
~}
~~1{
<Font Size=+1><u>Member of the class:</u></Font>
~1
<p>
~}
~~5{
<Font Size=+1><u>Description</u></Font><p>
~5
<p>
~}
~~6{
<Font Size=+1><u>Return Value</u></Font><p>
~6
<p>
~}
~~7{
<Font Size=+1><u>Example</u></Font><p>
~7
<p>
~}
[GenMenu]
Start="<Menu>"
#
# ~1 is the visible name
# ~2 is the name of the node
#
Entry="<li><a href=\"#~2\">~1</a>"
End="</Menu>"
#
# ~1 is the name of the association
# ~2 is the menu for it
#
[GenAssoMain]
<p><hr></p>
<a name="~1"></a>
<H1>~1</H1>
~2
#
# ~1 is the name of the association
# ~2 is the name without the distinguish
# ~3 is the comment for it
# ~4 is the menu for it
#
[GenAssoRest]
<p><hr></p>
<a name="~1"></a>
<H1>~2</H1>
~3
~4
#
# ~1 Main menu
# ~2 Name of the function list node
# ~3 Menu for all the functions
# ~4 All the associations code
# ~5 All the function nodes
# ~50+ Values from section Replace
#
[GenMain]
<html>
<head>
<title>~50</title>
</head>
<body>
<H1>~50</H1>
~51
~1
<p><hr></p>
<a name="~2"></a>
<H1>~2</H1>
~3
~4
~5
</body>
</html>