parser-generator
ANTLR parsing MismatchedTokenException
I\'m trying to write a simple parser for an even simpler language that I\'m writing. It\'s composed of postfix开发者_Python百科 expressions. As of now, I\'m having issues with the parser. When I run i[详细]
2023-03-13 09:09 分类:问答Abstract-syntax tree for subset of C
For teaching purpose we are building a javascript step by step interpreter for (a subset of) C code. Basically we have : int,float..., arrays, functions, for, while... no pointers.[详细]
2023-03-08 13:00 分类:问答Python3 parser generator
I\'m looking for a parser generator for a reasonably complex language (similar in complexity to Python itself) which works with Python3. If it can generate开发者_JAVA百科 an AST automatically, this wo[详细]
2023-03-08 11:04 分类:问答json text split reg expression or parser
$var =\" { key : { key_deep :val\\{ue/* should be \"val{ue\" as { is escaped*/ } , key2 : value } \"; print_r(preg_split(\'//\',$var));[详细]
2023-03-08 00:54 分类:问答What parser-generators with code separation and language extensibility would you recommend?
I\'m looking for 开发者_StackOverflow社区a context-free grammar parser generator with grammar/code separation and a possibility to add support for new target languages. For instance if I want parser i[详细]
2023-03-03 10:46 分类:问答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 分类:问答Trying to understand parsers
I\'m trying to use JavaCC to build a simple command line calculator that can handle a variety of expressions. While there are plenty of tutorials out there on how to write grammars, none that I\'ve se[详细]
2023-02-22 14:16 分类:问答Android quotes not getting parsed
I am using the following code to parse the RSS feeds. It does not work if the quotes appear. Please help.[详细]
2023-02-19 22: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 分类:问答JavaCC parser from Assembly Language to Machine Code -instruction separation problem
HY.I\'m trying to make a parser using JavaCC (an assembler) to transform from assembly code (Microcontroller 8051) to Machine COde.I have read about the javaCC grammar and the way it is structured but[详细]
2023-02-17 11:33 分类:问答