table of contents
other versions
- jessie-backports 3.0.0+dfsg-11+deb9u1~bpo8+1
- stretch 3.0.0+dfsg-11+deb9u1
plex(1) | Pascal lexical analyzer generator | plex(1) |
NAME¶
plex - The Pascal Lex lexical analyzer generator.USAGE¶
lex [options] lex-file[.l] [output-file[.pas]]OPTIONS¶
- -v
- Verbose: plex generates a readable description of the generated lexical analyzer, written to lex-file with new extension .lst
- -o
- Optimize: plex optimizes DFA tables to produce a minimal DFA.
DESCRIPTION¶
plex is a program generator that is used to generate the Turbo Pascal source code for a lexical analyzer subroutine from the specification of an input language by a regular expression grammar. plex parses the source grammar contained in lex-file (with default suffix .l) and writes the constructed lexical analyzer subroutine to the specified output-file (with default suffix .pas); if no output file is specified, output goes to lex-file with new suffix .pas. If any errors are found during compilation, error messages are written to the list file (lex-file with new suffix .lst). The generated output file contains a lexical analyzer routine, yylex, implemented as:function yylex : Integer;
MORE INFORMATION¶
For more information, see the documentation that comes with plex and yacc.AUTHOR¶
Albert Graeff (<ag@muwiinfa.geschichte.uni-mainz.de>, <Dr.Graef@t-online.de>)SEE ALSO¶
ppc386(1) pyacc(1)10 Jan 2000 | Free Pascal |