EnglishFrenchSpanish

OnWorks favicon

yaccplan9 - Online in the Cloud

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

This is the command yaccplan9 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


yacc - yet another compiler-compiler

SYNOPSIS


yacc [ option ... ] grammar

DESCRIPTION


Yacc converts a context-free grammar and translation code into a set of tables for an
LR(1) parser and translator. The grammar may be ambiguous; specified precedence rules are
used to break ambiguities.

The output file, y.tab.c, must be compiled by the C compiler to produce a program This
program must be loaded with a lexical analyzer function, yylex(void) (often generated by
lex(1)), with a main(int argc, char *argv[]) program, and with an error handling routine,
yyerror(char*).

The options are

-o output Direct output to the specified file instead of y.tab.c.

-Dn Create file y.debug, containing diagnostic messages. To incorporate them in
the parser, compile it with preprocessor symbol yydebug defined. The amount of
diagnostic output from the parser is regulated by value n. The value 0 reports
errors; 1 reports reductions; higher values (up to 4) include more information
about state transitions.

-v Create file y.output, containing a description of the parsing tables and of
conflicts arising from ambiguities in the grammar.

-d Create file y.tab.h, containing #define statements that associate yacc-assigned
`token codes' with user-declared `token names'. Include it in source files
other than y.tab.c to give access to the token codes.

-s stem Change the prefix of the file names y.tab.c, y.tab.h, y.debug, and y.output to
stem.

-S Write a parser that uses Stdio instead of the print routines in libc.

-l Disable #line directives in the generated parser.

-a Generate a parser that takes an argument of type Yyarg and passes this argument
to each invocation of the lexer function, yylex. Yyarg contains per-instance
state and a single user-visible member, arg, of type void*.

The specification of yacc itself is essentially the same as the UNIX version described in
the references mentioned below. Besides the -D option, the main relevant differences are:

The interface to the C environment is by default through <libc.h> rather than
<stdio.h>; the -S option reverses this.

The parser accepts UTF input text (see utf(7)), which has a couple of effects.
First, the return value of yylex() no longer fits in a short; second, the starting
value for non-terminals is now 0xE000 rather than 257.

The generated parser can be recursive: actions can call yyparse, for example to
implement a sort of #include statement in an interpreter.

Finally, some undocumented inner workings of the parser have been changed, which
may affect programs that know too much about its structure.

Use yaccplan9 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    usm
    usm
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js
    Chart.js
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    will...
    Download iReport-Designer for JasperReports
  • 5
    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
  • 6
    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
  • More »

Linux commands

Ad