abstract-syntax-tree
possibilities for fast dynamic code execution in Python
I have some code available in some form of AST and I would like to execute it. I can think of sever开发者_StackOverflowal ways to do this, e.g.:[详细]
2023-03-19 09:06 分类:问答Are the unary operators tree-nodes in the AST?
So I am trying to build and AST for boolean expression. Basically the expression is composed of boolean operands separated by AND, OR, NOT and paranthesis. Ex:[详细]
2023-03-19 07:10 分类:问答eclipse jdt automatic method stub generation
开发者_StackOverflowi am creating java source files using eclipse JDT & AST. There are cases that generated source files are implementing or extending something.[详细]
2023-03-18 04:45 分类:问答gppg/gplex equivalent in D?
When I was working in C#, I found the gppg and gplex parser/lexer generators to be perfect for my needs. I\'m wondering if there\'s so开发者_JAVA技巧mething similar for the D programming language (i.e[详细]
2023-03-18 01:27 分类:问答ANTLR AST tree - searching for specific nodes
I have an AST built 开发者_如何学运维based on a parser grammar. Now I want to search the tree to determine if specific nodes are present in the tree or not. What is the best way to do this?[详细]
2023-03-15 07:12 分类:问答using AST to add an other super-interface
I\'m using AST to modify source code files. Now I stick at a particular problem. I have an interface, lets call it A:[详细]
2023-03-14 19:01 分类:问答Convert Scala AST to source code
Given a Scala AST, is there a way to gener开发者_开发知识库ate Scala source code? I\'m looking into ways to autogenerate Scala source by parsing/analyzing other Scala source. Any tips would be apprec[详细]
2023-03-14 07:54 分类:问答Check if a block includes a method without running it in Ruby
I am writing an internal DSL in Ruby.Currently, the basic structure in this mini language is a block that must include the method during, and optionally some other methods.E.g.:[详细]
2023-03-14 02:55 分类:问答What would an AST (abstract syntax tree) for an object-oriented programming language look like?
I\'m reading about AST (abstract syntax trees) but all the samples I see use expressions such as: a + b * c[详细]
2023-03-13 23:03 分类:问答Ada short-circuit control forms
Whats the meaning of x AND THEN y AND z is it x AND THEN (y AND z) (y, z gets开发者_如何学Go never evaluated if x is FALSE)[详细]
2023-03-11 01:47 分类:问答
加载中,请稍侯......