1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta name="robots" content="noindex">
<title>lim_test Command description</title>
</head>
<body bgcolor=white text=black link=navy vlink=navy alink=purple>
<b><font color=\"#008B8B\"><a href="styx.html">contents</a></font></b><br>
<H1><font color=red>lim_test</font> Scanner test program</H1>
<BR>
<p>'lim_test' scans the given source file and lists the tokens on stdout.
The source file must be conform with the language parameter. It uses the image file
of the scanner table [Language.lim].
<p>The current version doesn't support the embedded language facility.
<BR>
<BR>
<H2>Arguments</H2>
<BR>
<table width=100% border=0 cellspacing=10>
<COL WIDTH=2*>
<COL WIDTH=1*>
<COL WIDTH=6*>
<thead>
<TR valign=top bgcolor=#DDDDFF><TD align=left>Name<TD align=left>Type<TD align=left>Semantic
<tbody>
<TR valign=top><TD align=left><B>Language</B><TD align=left><B><font color=navy> name</font></B><TD align=left> language name
<TR valign=top><TD align=left><B>FileName</B><TD align=left><B><font color=navy> path</font></B><TD align=left> path of source file to scan
</table>
<BR>
<BR>
<BR>
<H2>Options</H2>
An option will be specified as follows: <B>-<Name>=<Value></B>
<BR>A flag is toggled that way: <B>-<Name></B>
<BR>The default value will be applied when the option wasn't specified.
<BR>
<BR>
<table width=100% border=0 cellspacing=10>
<COL WIDTH=2*>
<COL WIDTH=1*>
<COL WIDTH=3*>
<COL WIDTH=4*>
<thead>
<TR valign=top bgcolor=#DDDDFF><TD align=left>Name<TD align=left>Type<TD align=left>Default value<TD align=left>Semantic
<tbody>
<TR valign=top><TD align=left><B>charset</B><TD align=left><B><font color=navy> string</font></B><TD align=left>""<TD align=left> source file character set ( UTF-8, UCS4, ... )
<TR valign=top><TD align=left><B>skipset</B><TD align=left><B><font color=navy> string</font></B><TD align=left>""<TD align=left> ( ascii ) characters to be skipped
<TR valign=top><TD align=left><B>binmode</B><TD align=left><B><font color=navy> flag</font></B><TD align=left>false<TD align=left> scan source file in binary mode ( not with charset-option )
<TR valign=top><TD align=left><B>wprint</B><TD align=left><B><font color=navy> flag</font></B><TD align=left>false<TD align=left> unicode output ( on non-default character set )
<TR valign=top><TD align=left><B>prepar</B><TD align=left><B><font color=navy> string</font></B><TD align=left>""<TD align=left> standard preprocessing: yes or list index~value , ...
<TR valign=top><TD align=left><B>premac</B><TD align=left><B><font color=navy> string</font></B><TD align=left>""<TD align=left> standard preprocessing: pre-defined macro , ...
<TR valign=top><TD align=left><B>prefun</B><TD align=left><B><font color=navy> string</font></B><TD align=left>""<TD align=left> user-defined preprocessing: Function@Library ( not with prepar-option )
<TR valign=top><TD align=left><B>tokens</B><TD align=left><B><font color=navy> flag</font></B><TD align=left>true<TD align=left> create list of all scanned tokens
<TR valign=top><TD align=left><B>symbols</B><TD align=left><B><font color=navy> flag</font></B><TD align=left>false<TD align=left> create list of all symbols in the internal symbol table
</table>
<BR>
<p>The options 'prepar' and 'premac' are only useful with styx-like preprocessing.
<p>If your language uses the same preprocessing directives as specified in [styx.sty],
but differnt macro token identifiers and keywords, the option 'prepar' can be used to
enable preprocessing and specify the differences as a comma separated list:
</p>
<ol>
<li><b>0~name of identifier token</b>
<li><b>1~name of macro definition token</b>
<li><b>2~name of argument separator token</b>
<li><b>3~name of include token</b>
<li><b>4~name of conditional token</b>
<li><b>5~name of undefine token</b>
<li><b>6~#macro keyword</b>
<li><b>7~#end keyword</b>
<li><b>8~#ifdef keyword</b>
<li><b>9~#ifndef keyword</b>
<li><b>10~#else keyword</b>
<li><b>11~#include keyword</b>
<li><b>12~#undefine keyword</b>
<li><b>13~environment variable or path list as search path for include files</b>
<li><b>14~include file character set ( default: charset-option )</b>
</ol>
<p>The option 'premac' supports pre-defined macros in connection with
styx-like preprocessing.
<p>Dynamic library support is a prerequisite for the user-defined callback handler.
<BR>
<BR>
<H2>Environment</H2>
An environment variable will be specified as followed: <B>-<Name>=<Value></B>
<BR>The default value will be applied when no environment variable was specified.
<BR>
<BR>
<table width=100% border=0 cellspacing=10>
<COL WIDTH=2*>
<COL WIDTH=1*>
<COL WIDTH=3*>
<COL WIDTH=4*>
<thead>
<TR valign=top bgcolor=#DDDDFF><TD align=left>Name<TD align=left>Type<TD align=left>Default value<TD align=left>Semantic
<tbody>
<TR valign=top><TD align=left><B>BINSTYX</B><TD align=left><B><font color=navy> path</font></B><TD align=left>PATH<TD align=left> search environment for [Language.lim]
</table>
<BR>
<BR>
<BR>
</body>
</html>
|