Yacc - CompWisdom
About us  |  Why use us?  |  Press  |  Contact us

 

Topic: Yacc



  
 Yacc - Wikipedia, the free encyclopedia
LALR parser: The underlying parsing algorithm in Yacc.
Yacc is a piece of computer software that serves as the standard parser generator on Unix systems.
Since the parser generated by Yacc requires a lexical analyzer, it is often used in combination with a lexical analyzer generator, in most cases either Lex or the free software alternative Flex.
http://en.wikipedia.org/wiki/Yacc   (287 words)

  
 [No title]
The Yacc user prepares a specifica- tion of the input process; this includes rules describing the input structure, code to be invoked when these rules are recog- nized, and a low-level routine to do the basic input.
Yacc provides a general tool for describing the input to a computer program.
The Yacc user specifies the structures of his input, together with code to be invoked as each such structure is recognized.
http://www.cs.uaf.edu/~cs631/yacc-docs.txt   (11347 words)

  
 yacc(1): yet another compiler compiler - Linux man page
The yacc command accepts a language that is used to define a grammar for a target language to be parsed by the tables and code generated by yacc.
The following input to yacc yields a parser for the input to yacc.
The yacc utility shall read a description of a context-free grammar in grammar and write C source code, conforming to the ISO C standard, to a code file, and optionally header information into a header file, in the current directory.
http://www.die.net/doc/linux/man/man1/yacc.1.html   (6619 words)

  
 lex and yacc: Tools Worth Knowing Linux Journal
Once yacc understood a particular line of BASIC code, it could cause the execution of the equivalent instructions in the native language of the host computer.
The indication is a token that yacc knows about, and in fact, these are defined in the yacc portion of the analyzer/parser program so that they are common to both lex and yacc.
One requirement is that the yacc tokens be known to the lex program.
http://www.linuxjournal.com/article/2227   (3373 words)

  
 Differences Between YACC and AnaGram
Not the least of the problems associated with using YACC is the murky interface between a YACC parser and its associated lexical scanner.
In semantic actions, or reduction procedures, it is often desirable to access the semantic value of some of the tokens in the rule being reduced.
First, AnaGram has a much richer notation than YACC, usually eliminating the need for separate lexical scanners; second, AnaGram has an interactive working environment to help in understanding and debugging grammars; and third, AnaGram has numerous facilities to customize a parser to particular needs.
http://www.parsifalsoft.com/yaccdif.html   (2530 words)

  
 Embedded.com - Lex and Yacc for Embedded Programmers
Lex and yacc are free development tools that help you write software in C or C++ that interprets or transforms structured input.
Although lex and yacc are generally considered to be UNIX utilities, versions exist for a variety of platforms.
Compile the input specifications using lex and yacc.
http://www.embedded.com/story/OEG20030220S0036   (3632 words)

  
 Siber Systems BtYacc: BackTracking Yacc
Anyone who has ever looked at Jim Roskind public domain C++ yacc grammar, or the yacc-based grammar used in g++ knows how difficult this is. BTYACC is very useful for parsing any ambiguous grammar, particularly ones that come from trying to merge two (or more) complete grammars.
This is original Berkeley Yacc modified by Chris Dodd and then further enhanced by Vadim Maslov of Siber Systems to better fit production environment (and to have less bugs, too).
Whenever a btyacc generated parser runs into a shift-reduce or reduce-reduce error in the parse table, it remembers the current parse point (yacc stack and input stream state), and goes into trial parse mode.
http://www.siber.com/btyacc   (3123 words)

  
 BYACC/J Home Page
YACC has already been described many times, and in great detail, so I would appreciate that BYACC/J users' questions about YACC and LALR parsers be directed to the many good sources available on the Net and in print.
The latest modified/cleaned up/updated Berkeley Yacc source files, GNU makefile, and Borland C++ 5 Makefile can be obtained bellow, in addition to several binary builds.
Of course, the original YACC design is about twenty years old now, and newer and better technologies are currently available.
http://byaccj.sourceforge.net   (1676 words)

  
 Yacc - A parser generator
Yacc lets us refer to the value of a given token using a syntax similar to that of awk and perl.
In any case, yacc provides a formal method for dealing with the semanitic value of tokens.
To understand why this 2nd approach might be considered better than our earlier one, we need to explore Yacc Actions.
http://www.luv.asn.au/overheads/lex_yacc/yacc.html   (5720 words)

  
 Lex and YACC primer/HOWTO
When YACC saw the light of day, the tool was used to parse input files for compilers: programs.
It is generated by YACC from the Grammar File we are about to create.
If you have been programming for any length of time in a Unix environment, you will have encountered the mystical programs Lex and YACC, or as they are known to GNU/Linux users worldwide, Flex and Bison, where Flex is a Lex implementation by Vern Paxon and Bison the GNU version of YACC.
http://www.faqs.org/docs/Linux-HOWTO/Lex-YACC-HOWTO.html   (4973 words)

  
 UNIX man pages : yacc ()
The parsers consist of a set of LALR(1) parsing tables and a driver routine written in the C programming language.
The code file is named y.code.c, and the tables file is named y.tab.c.
-o output_filename Cause yacc to write the generated code to output_filename instead of the default file, y.tab.c.
http://unixhelp.ed.ac.uk/CGI/man-cgi?yacc   (319 words)

  
 ML-Yacc User's Manual Version 2.3
The generated parsers use a different algorithm for recovering from syntax errors than parsers generated by Yacc.
You may declare whether your semantic actions are free of side-effects and always terminate, in which case ML-Yacc does not need to defer the evaluation of your semantic actions.
It generates parsers for LALR languages, like Yacc, and has a similar syntax.
http://www.cs.princeton.edu/~appel/modern/ml/ml-yacc/manual.html   (6254 words)

  
 The Roles of Lex and YACC
To know which step to take next, YACC repeatedly calls the function that lex created to read input characters until a useful "chunk" is encountered.
When this chunk is encountered, the lex function puts the actual text that it read into the string yytext and returns to the calling yacc program with a "token" describing what kind of chunk was encountered.
The C function created by Lex serves to read input on a character level and break it into bite-size chunks for the grammar expressed in YACC.
http://www.ecst.csuchico.edu/~bhsteel/250/examplesHandout/handout.html   (798 words)

  
 Therobs.com Lex and Yacc FAQ
It depends on the version of lex and yacc you are using.
Flex and Bison are essentially compatible GNU versions of Lex and Yacc.
Lex implements regular expressions, while Yacc implements Backus-Naur Form, a formal syntax for language grammars.
http://www.therobs.com/uman/faq.shtml   (934 words)

  
 Yacc to LaTeX
It is designed to be able to turn any yacc source file into an EBNF description, yet it might choke on some Bison source files, because of large liberties the authors of Bison have taken compared to the "original" yacc.
This is considered to be a "known bug" and might be solved in the future.
That failed quite miserably because of implicit dependencies on the format of the Abyss grammar description.
http://www.alchar.org/~aedil/Projects/y2l.html   (412 words)

  
 CS5034 YACC notes
YACC programs receive a stream of tokens from a lexer as input.
Parsers check the syntax of a programming language.
%{ /* Example yacc source file * Adapted from "Lex and Yacc" by Levine, * Mason, and Brown */ %} %union { char *string; int integer; } %token NAME %token NUMBER %type expression %%
http://ei.cs.vt.edu/~cs5034/yacc/yacc.html   (168 words)

  
 MKS Lex & Yacc
MKS Lex and Yacc provides the function yymapch(), which returns the next character in the input stream, or EOF when a specified delimiter is encountered.
This makes error recovery slightly different; in general MKS yacc will perform fewer reductions than will UNIX yacc before noticing an error on a lookahead token.
Remember to leave the parsing to yacc, and to keep your lex input simple and clean."
http://www.mkssoftware.com/docs/wp/wp_lyuse.asp   (1779 words)

  
 Project Summery - Visualization Tool for YACC
Once this YACC grammar is processed by the YACC tools and is compiled, a compiler that parses and does visualization for the given grammar will result.
I designed a source-to-source translation scheme that instrumented input YACC grammars with calls to a graphics library so that as the resulting parser analyzed an input string, these calls would generate a visualization of both the LR parse stack (and attribute values) and the LR parse tree.
The next task was to determine how to add Motif calls to a YACC grammar specification so that the calls are made as the input is parsed.
http://cs.gmu.edu/~white/Pages/cra.html   (642 words)

  
 [No title]
Generate y.tab.h, producing #define statements that relate yacc's token codes to the token names declared by the user.
Prepend prefix, instead of y, to the output file.
Generate y.output, a file containing diagnostics and notes about the parsing tables.
http://www.onlamp.com/linux/cmd/y/yacc.html   (98 words)

  
 oreilly.com -- Online Catalog: lex & yacc, Second Edition
Major MS-DOS and Unix versions of lex and yacc are explored in depth.
Shows programmers how to use two Unix utilities, lex and yacc, in program development.
You'll find tutorial sections for novice users, reference sections for advanced users, and a detailed index.
http://www.oreilly.com/catalog/lex   (120 words)

  
 Yet Another Compiler Compiler from FOLDOC
Also, the language used to describe the syntax of another language to yacc (the program).
language> (yacc) The LALR parser generator found on most Unix systems.
SASL-Yacc - "Yacc in SASL - An Exercise in Functional Programming", Simon Peyton-Jones, Software Prac and Exp 15:807-820 (1985).
http://foldoc.org/?yacc   (153 words)

  
 CL-Yacc — a LALR(1) parser generator for Common Lisp
CL-Yacc uses the algorithm due to Aho and Ullman, which is the one also used by ATandT Yacc, Berkeley Yacc and Zebu.
Here's a list of features that users have suggested but that I will probably not implement myself:
It does not use the faster algorithm due to DeRemer and Pennello, which is used by Bison and lalr.scm (not to be confused with lalr.cl).
http://www.pps.jussieu.fr/~jch/software/cl-yacc   (487 words)

  
 ANSI C grammar (Yacc)
In 1985, Jeff Lee published his Yacc grammar (which is accompanied by a matching Lex specification) for the April 30, 1985 draft version of the ANSI C standard. 
Tom Stockfisch reposted it to net.sources in 1987; that original, as mentioned in the answer to question 17.25 of the comp.lang.c FAQ, can be ftp'ed from ftp.uu.net, file
http://www.lysator.liu.se/c/ANSI-C-grammar-y.html   (481 words)

  
 CUP User's Manual
Version 0.10 of CUP adds many new changes and features over the previous releases of version 0.9.
In particular, it supports a special error symbol (denoted simply as
CUP is designed to fill the same role as the well known YACC parser generator system, but is written in and operates entirely with Java code rather than C or C++.
http://www.cs.princeton.edu/~appel/modern/java/CUP/manual.html   (6468 words)

  
 Catalog of compilers: yacc
Accepted by Software - Practice and Experience, 1994.
C, C++, Objective-C, yacc, lex, postscript, sh, awk, smalltalk, sed
http://www.idiom.com/free-compilers/LANG/yacc-1.html   (355 words)

  
 Debian -- ml-yacc
Parser generator for Standard ML SML version of the yacc program, generates a parser for a LALR language.
http://packages.debian.org/unstable/devel/ml-yacc.html   (87 words)

  
 YACC Labs Limited - I.T. Service Provider based in Leeds
Yacc Labs Ltd are currently offering Free Software Consultancy to potential new clients.
Our independence means that our customers can rely upon us to provide the best solutions to their problems, rather than the best that our suppliers allow us to sell them.
Yacc Labs is an independent IT consultancy, set up in 1989.
http://www.yacc.co.uk   (669 words)

  
 Yale Avenue Christian Church
C.L.A.S.S. is YACC's unique program to help you grow and become a fully developed follower of Jesus Christ.
Everyone is welcome and included at YACC including ministries designed for adults, youth, and children.
For more information about the Disciples of Christ, you may visit us at www.disciples.org.
http://www.yacc.org   (228 words)

  
 Villainous Company: YACC
Listed below are links to weblogs that reference YACC:
Posted by Cassandra at February 3, 2005 08:44 AM Trackback Pings
http://www.villainouscompany.com/vcblog/archives/2005/02/yacc.html   (1468 words)

Compwisdom
 About us   |  Why use us?   |  Press   |  Contact us

 Copyright © 2006 CompWisdom.com Usage implies agreement with terms.