Top "Yacc" questions

The computer program yacc is a parser generator developed by Stephen C. Johnson at AT&T for the Unix operating system.

How to find shift/reduce conflict in this yacc file?

When I try to use yacc on the following file I get the error conflicts: 1 shift/reduce How can I …

yacc
How to use yylval with strings in yacc

I want to pass the actual string of a token. If I have a token called ID, then I want …

yacc bison lexical-analysis
How do i implement If statement in Flex/bison

I dont get the error, please can you help me out, here is the .l and .y file.thanks. %{ #include "…

c++ yacc bison lexical-analysis
Yacc equivalent for Java

I'm working on a compiler design project in Java. Lexical analysis is done (using jflex) and I'm wondering which yacc-like …

java yacc
fatal error:y.tab.h: No such file or directory on fedora

I am running my fedora on VMware Workstation. I am having a lex and yacc program. Compilation of program is …

fedora yacc lex
Lex/Flex - Scanning for the EOF character

Other people have had the following problem that I am having but I can't find anyone that has reported a …

bison yacc lex flex-lexer
Flex and Yacc - Cannot find - lfl?

Hi I'm learing Lex and yacc. I created the following lex program. %{ #include <stdio.h> %} %% [0123456789]+ printf("NUMBER\n"); […

yacc lex
%left and %right in yacc

{% #include<stdio.h> #include<stdlib.h> %} %token ID NUM IF THEN LE GE EQ NE OR …

gcc compiler-construction syntax if-statement yacc
What is the meaning of yytext[0]?

What is the meaning of yytext[0]? And why should we use in the lex and yacc program? I'm learner so …

yacc flex-lexer lexical-analysis
What's the difference between a parser and a scanner?

I already made a scanner, now I'm supposed to make a parser. What's the difference?

parsing yacc lexical-analysis