abstract-syntax-tree
Using the Eclipse AST
I have recently come into the need of modifying some Java code (adding methods, changing开发者_运维技巧 the signatures of some fields and removing methods) and I think that all of this can be accompli[详细]
2023-01-09 09:06 分类:问答how to write a Python debugger/editor
Sorry for the kind of general question. More details about what I want: I want the user to be able to write some Python code and execute it. Once there is an exception which is not handled, I want th[详细]
2023-01-07 07:20 分类:问答Algorithm to build syntax tree from prefix order expression
What type of algorithm would be used to construct a syntax tree from an expression represented in prefix order 开发者_高级运维notation?A simple recursive algorithm can convert a prefix-order expressio[详细]
2023-01-07 02:03 分类:问答How do I extract the names from a simple function?
I\'ve got this piece of code: import inspect import ast def func(foo): return foo.bar - foo.baz s = inspect.getsource(func)[详细]
2023-01-06 09:58 分类:问答Is it possible the get the AST for an OCaml program?
I\'d like to be able to get the AST for a given OCaml program (I\'d like to walk the AST and generate an instrumented version开发者_JS百科 of the code or do some kind of transformation, for example).D[详细]
2023-01-05 08:03 分类:问答Could we access to the Qt creator internal parser from a plugin?
I would like to make开发者_如何学Go a plugin for Qt Creator, and I want access to the parsing files (AST) in Qt Creator. For example if you right click on a variable, retrieve its type.[详细]
2023-01-04 23:10 分类:问答Interrogating Java source code
I have a Java source code that I need to interrogate and apply security policies [for e.g. applying CWE][详细]
2023-01-03 02:41 分类:问答JDT ASTParser to get the value of a string field
Is there a way to use jdt ASTParser to get the value of a String field declared in a java file. Actually what I need is to resolve any possible dependencies from other classe开发者_如何学Pythons e.g.[详细]
2023-01-02 13:59 分类:问答Creating simple calculator with bison & flex in C++ (not C)
I would like to create simple C++ calculator using bi开发者_如何学Pythonson and flex. Please note I\'m new to the creating parsers. I already found few examples in bison/flex but they were all written[详细]
2023-01-02 10:22 分类:问答From Source to AST to CodeDom
I am reading the book Language Implementation Patterns (http://pragprog.com/book/tpdsl/language-implementation-patterns) amongst a few others mixed in to clarify concepts as well as the occasional web[详细]
2023-01-01 21:11 分类:问答