bison
Bison Flex token for every undefined token read
I am looking for a way to parse just a particular part of a file. For example, lets see: if {$cpf_step == \"pre_restruct\"} {[详细]
2023-03-02 16:59 分类:问答How can I use flex & bison in Visual Studio 2010?
I\'ve read http://msdn.m开发者_开发知识库icrosoft.com/en-us/library/aa730877%28vs.80%29.aspx but this document was for VS 2005. I stuck on the part \'Importing a .rules File in Visual C++\' in the doc[详细]
2023-03-02 02:53 分类:问答Clean way to end the parsing of a bison parser
I am writing a small expression analyser parser for a project at the company where I work. The parser is supposed to check, for example, a division by zero or an undefined identifier, report the error[详细]
2023-03-01 06:12 分类:问答bison c++: error expected initializer before ‘*’ token
I\'m using flex and bison on C++ bur now I struggled. The error that g++ throws is: src/bison.tab.h:125: error: expected initializer before ‘*’ token[详细]
2023-02-27 06:32 分类:问答Bison - additional parameter to a push and pure parser
How can I pass one aditional parameter (not the token minor of type YYSTYPE) to the yypush_parse() function?[详细]
2023-02-26 13:46 分类:问答How does/would the following snippet work for generation of an AST?
We\'re writing a compiler for Al Aho\'s compilers class, and we\'re considering the following code for the generation of our AST. Here is some background. We want to implement scoping rules as a stack[详细]
2023-02-24 11:11 分类:问答How to get the AST from YACC?
I know how to make YACC generate an AST, but how do you actaully get it? I mean, how do you actaully get t开发者_运维技巧he value of the root node from YACC?Yacc only gives you back one node at a time[详细]
2023-02-24 09:21 分类:问答Flex/Bison Multi-pass Class Parsing
I am writing a compiler for a toy OO language. I am writing it in C, using Flex and Bison. Consider the following syntax:[详细]
2023-02-24 06:14 分类:问答Yacc Scope Problem
So I looked around for an answer to this, but the only thing I could gather was that i was having a scope problem.[详细]
2023-02-21 04:55 分类:问答How to compile LEX/YACC files on Windows?
I\'m having Lex and YACC files to parse my files (.l file and .y file). How to compile those files and how 开发者_运维问答to make equivalent .c file for them in windows platform?As for today (2011-04[详细]
2023-02-20 00:15 分类:问答