EnglishFrenchSpanish

OnWorks favicon

plex-3.0.0 - Online in the Cloud

Run plex-3.0.0 in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command plex-3.0.0 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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;

This routine has to be called by your main program to execute the lexical analyzer. The
return value of the yylex routine usually denotes the number of a token recognized by the
lexical analyzer (see the return routine in the LexLib unit). At end-of-file the yylex
routine normally returns 0.

The code template for the yylex routine may be found in the yylex.cod file. This file is
needed by TP Lex when it constructs the output file. It must be present either in the
current directory or in the directory from which TP Lex was executed (TP Lex searches
these directories in the indicated order). (NB: For the Linux/Free Pascal version, the
code template is searched in some directory defined at compile-time instead of the
execution path, usually /usr/lib/fpc/lexyacc.)

The TP Lex library (LexLib) unit is required by programs using Lex-generated lexical
analyzers; you will therefore have to put an appropriate uses clause into your program or
unit that contains the lexical analyzer routine. The LexLib unit also provides various
useful utility routines; see the file lexlib.pas for further information.

MORE INFORMATION


For more information, see the documentation that comes with plex and yacc.

Use plex-3.0.0 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 2
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 3
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 4
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 5
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 6
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • More »

Linux commands

Ad