parse-tree
Decorating parse tree using attribute grammar
Given the following attribute grammar for type declarations, I need to be able to produce a parse tree for any given string, for example \"A, B : C;\", and then decorate the tree.[详细]
2023-04-13 03:51 分类:问答How do you convert the following ambiguous grammar to unambiguous?
I understand how the difference between the two, how ambiguity means that t开发者_如何学Gohere is at least one string with 2 distinct parse trees while there is only one in an unambiguous tree. But I[详细]
2023-04-05 13:18 分类:问答Does a line profiler for code require a parse tree and is that sufficient?
I am tryin开发者_Python百科g to determine what is necessary to write a line profiler for a language, like those available for Python and Matlab.[详细]
2023-04-02 07:42 分类:问答C/C++ library for lazy evaluation of SIMD/SSE expressions
Libraries such as intel-MKL or amd-ACML provide easier interface to SIMD operations on vectors, but I want to chain several functions together. Are there readily available libraries where I can regist[详细]
2023-03-27 03:50 分类:问答Javascript syntax test cases
I\'m creating a text editor and I\'ve just finished writing the highlighting algorithms to have each of the syntax appear in a different color, and render in the right position using the proper parse[详细]
2023-03-08 18:48 分类:问答antlr3 - Generating a Parse Tree
I\'m having trouble figuring out the antlr3 API so I can generate and use a parse tree in some javascript code. When I open the grammar file using antlrWorks (their IDE), the interpreter is able to sh[详细]
2023-03-05 16:59 分类:问答Tool for drawing parse trees? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-02-10 13:04 分类:问答Boost::Spirit::Qi autorules -- avoiding repeated copying of AST data structures
I\'ve been using Qi and Karma to do some processing on several small languages. Most of the grammars are pretty small (20-40 rules). I\'ve been able to use autorules almost exclusively, so my parse tr[详细]
2023-02-03 21:13 分类:问答Generate syntax tree for simple math operations
I am trying to generate a syntax tree, for a given string with simple math operators (+, -, *, /, and parenthesis).[详细]
2022-12-28 14:43 分类:问答Is it possible to use Recursive Descent Parser to both verify the grammar AND build the parse tree at the same time?
Is it possible to generate a parse tree at开发者_C百科 the same time as I use recursive descent parser to check if the data matches grammar?[详细]
2022-12-22 08:07 分类:问答