Top "Yacc" questions

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

Making YACC output an AST (token tree)

Is it possible to make YACC (or I'm my case MPPG) output an Abstract Syntax Tree (AST). All the stuff …

parsing syntax yacc gppg
Include struct in the %union def with Bison/Yacc

I am trying to include a struct as part of the union with Bison, but I get an error on …

c yacc bison
bison end of file

If I forget to put an empty line at the end of any of my files my program gets a …

yacc bison lex eof
in lex how to make yyin point to a file with the main function in yacc?

I am storing the arguments passed to main in yacc in a file. Now I want the lex to read …

c yacc lex flex-lexer
Is there a Sublime Text Syntax for Flex and Bison?

I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a …

sublimetext2 bison yacc lex sublimetext3
Where can I find standard BNF or YACC grammar for C++ language?

I'm trying to work on a kind of code generator to help unit-testing an legacy C/C++ blended project. I …

c++ yacc bnf
y.tab.c: undefined reference to yylex

I am trying to run an example I found online of a calculator. But I have this error showing every …

yacc
Lisp grammar in yacc

I am trying to build a Lisp grammar. Easy, right? Apparently not. I present these inputs and receive errors... ( 1 1) 23 23 23 ui …

lisp grammar yacc
Simple yacc grammars give an error

I have a question for yacc compiler. I do not compile simple yacc grammar. Here is the code section : /*anbn_0.…

yacc
Getting: warning, rule cannot be matched

I am working on building a lexical and syntax analyzer. I am getting the following warning when I try to …

bison yacc lex flex-lexer