bison
Learning bison: What are context-free grammars and LALR(1)?
I am reading this bison introduction. I have two questions and it will be great if someone can help me understand:[详细]
2023-03-30 17:24 分类:问答Bison: print stack with names on error
How can I display items on stack in yyerror function? I\'ve found yy_stack_print but it only prints numb开发者_开发知识库ers and requires 2 arguments which I don\'t how how to obtain.Unfortunately the[详细]
2023-03-29 08:41 分类:问答assigning ASCII values to variables in bison
I want my parser to handle case like: a=\'A\'; // a should be set with ASCII(A) i.e 65 My token declaration looks like :[详细]
2023-03-27 19:19 分类:问答Ambiguous grammar (using Bison)
I\'ve got a problem with an ambiguous grammar. I\'ve got this: %token identifier %token lolcakes %start program[详细]
2023-03-27 02:08 分类:问答Parsing SPARQL queries
I need to test for a certain structural property of a couple million SPARQL queries, and for that I need the structure of the WHERE statement. I\'m currently trying to use fyzz to do this, but unfortu[详细]
2023-03-26 12:19 分类:问答Bison error output
I\'m using Bison and I\'ve generated a quite complex grammar. The trouble is that my first test case is failing- but Bison will only sa开发者_如何学运维y \"syntax error\". Is there any way to ask Biso[详细]
2023-03-26 04:53 分类:问答Bison error -expected $end
I\'m working on a parser in Bison. When parsing a test case, Bison gives a syntax error, saying that it expected $end,开发者_如何学C but there were more tokens. I\'ve searched the Bison manual for $en[详细]
2023-03-25 04:55 分类:问答YACC rules not getting reduced
I\'m trying to learn YACC and having a bit of trouble figuring out the warning messages it is giving me. Here is part of my file:[详细]
2023-03-23 17:28 分类:问答Help with Compiler Design [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Learning to write a compiler[详细]
2023-03-23 11:47 分类:问答How to get 'expected token' in bison/yacc GLR-parser?
How to get \'expected token\' in bison/yacc GLR-parser? Hi, In the project i am doing, there\'er a few ambiguou开发者_如何学Pythons gramar. So i am trying to use %glr-parser to solve the shift/reduc[详细]
2023-03-19 19:36 分类:问答