bison
how to solve bison warning $1 of `GrammarCl' has no declared type
I have a grammar in BNF and i used BNF Converter to convert this grammar into executable program with C code. However, i have specific problem regarding $1 of `GrammarCl\' has no declared type in Gram[详细]
2023-02-19 10:09 分类:问答Flex / Lex Encoding Strings with Escaped Characters
I\'ll refer to this question for some of the background: Regular expression for a string literal in flex/lex[详细]
2023-02-19 05:35 分类:问答heap handling in a bison push pure parser
Is there any w开发者_Python百科ay to specify my own allocator/deallocator functions for heap management instead of malloc()/free() for a pure push parser in bison?Most of Bison\'s memory allocations c[详细]
2023-02-19 04:09 分类:问答make calling bison -y without being asked to
I have a grammar I\'m writing, called portugol. The files names are basic, but I chose to call my c program portugol.c.[详细]
2023-02-18 17:38 分类:问答Is there a way to change the flex start state from bison?
I have defined different states in my lexer, which change not depending on the token but on a s开发者_如何转开发equence of tokens (similarly to how template engines work). I can define longer tokens b[详细]
2023-02-18 14:51 分类:问答Writing a compiler
I basically need to make a compiler for bibtex files, such that a given bibtex database can be queried. Now I\'m familiar with certain aspects of theory, like automata, grammars, SLR,LR(1) and LALR pa[详细]
2023-02-18 10:23 分类:问答Confusion in continuing the Project Related to C Syntax Analyser
My target is to make a program (using C++) which would take C source code as input and check for \"SYNTAX ERRORS ONLY\".[详细]
2023-02-18 03:10 分类:问答Compiling a (flex/bison) parser with NDK
UPDATE I know now that parser.h should be generated by the make system from parser.y. The Android.mk file even has an entry like this:[详细]
2023-02-17 17:34 分类:问答Automake Yacc Output Filename Quandary
Problem: I have a project which I\'m porting from Solaris/Lex/Yacc to Linux/Flex/Bison + Autotools. I\'m running into the following issue, and I wonder if anyone out there knows how to get around it.[详细]
2023-02-17 16:59 分类:问答What does it mean when yacc {code} are in the middle?
extdefs: {$<ttype>$ = NULL_TREE; } extdef extdefs {$<ttype>$ = NULL_T开发者_开发技巧REE; } extdef[详细]
2023-02-17 08:56 分类:问答