yacc
How to write own parser for (f)lex?
I generated with flex a lexer. [ \\t\\n\\r\\v]/* skip whitespace */ [_a-zA-Z]([_a-zA-Z]|[0-9])*printf(\"IDENT\\n\");[详细]
2023-01-27 00:43 分类:问答Operations with YACC in C for a LISP subset
Is there any way to add to 2 or more operands in a YACC project using the C language to build a parser for a LISP subset, this is the grammar[详细]
2023-01-26 19:26 分类:问答How can I tell if a function call is an expression or a statement while writing a parser for a Lua-like language
I\'m trying to write a parser for a Lua-like language, using lex and yacc. It is a language without a f开发者_Go百科orced statement terminator(a semicolon), and this feature made me not able to tell i[详细]
2023-01-24 12:32 分类:问答How to get yacc/bison and lex/flex to pause file scanning?
Im trying to parse a file using Bison/Yacc but i want to pause the parsing for a while. The reason i want to do this is that i want to process a huge file sequentially and simulate a java iterator usi[详细]
2023-01-24 04:48 分类:问答Ignoring errors in yacc/lex
I\'m new to yacc/lex and I\'m working on a parser that was written by someone else. I notice that when an undefined token is found, the parser returns an error and stops. Is there a simple way to just[详细]
2023-01-22 14:14 分类:问答What goes in between { and } when writing BNF?
I\'m having some trouble with BNF. I can\'t tell what seems to be the standard way of doing things (if there is one), and whether or not there are types like char or int or whatever already built in.[详细]
2023-01-22 12:00 分类:问答Problem using yyin with yacc file
I am using Yacc and lex to parse a C type language , I have built the data structures using c++. everything works fine but i am not able to read the input file using yyin in main.cpp.[详细]
2023-01-21 08:04 分类:问答why calles function yyerror() in sample programm
curs.l : %{ #include <stdlib.h> #include \"tree.c\" #include \"yycurs.h\" %} L [a-zA-Z_] D [0-9] D4 [0-3][详细]
2023-01-21 06:34 分类:问答SCONS: making a special script builder depend on output of another builder
I hope the title clarifies what I want to ask because it is a bit tricky. I have a SCONS SConscript for every subdir as follows (doing it in linux, if it matters):[详细]
2023-01-14 19:24 分类:问答How to use Bison (Yacc) to produce 64bit parser in C++?
Can anyone shed some light on this? From Bison\'s documentation, I didn\'t see anything related to this topic. Thanks very much in a开发者_运维问答dvance.[详细]
2023-01-13 14:00 分类:问答