compiler-theory
Conversion system for variants
I have written a variant class, which will be used as the main type in a dynamic language, that will ultimately allow 256 different types of value (header is an unsigned byte, only 20 are actually use[详细]
2023-03-04 09:22 分类:问答Are there any "fun" ways to learn about Languages, Grammars, Parsing and Compilers? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-02-28 06:36 分类:问答How to optimize this function with the compiler?
I have been doing the course on Compiler and Tools (this semester). I ha开发者_开发知识库ve read till intermediate code generation and also saw DAG representation for optimality. One thing is clear wi[详细]
2023-02-24 11:41 分类:问答How does/would the following snippet work for generation of an AST?
We\'re writing a compiler for Al Aho\'s compilers class, and we\'re considering the following code for the generation of our AST. Here is some background. We want to implement scoping rules as a stack[详细]
2023-02-24 11:11 分类:问答Which programming languages have a regular grammar?
I\'m curious about which (if any) real-world programming languages have a regular grammar (i.e. the set of all syntactically correct programs is regular).[详细]
2023-02-24 00:04 分类:问答Heap Object representation for OO language
As part of my masters thesis I am writing a compiler for an object oriented language that was developed at my home university. Currently the compiler outputs assembler that runs on a virtual machine.[详细]
2023-02-23 07:44 分类:问答Creating programming language question
I\'m thinking about creating a custom (small) programming language (syntax) based on C. I don\'t understand how apple implemented obj开发者_高级运维ective-c with operators like [testClass runThis:true[详细]
2023-02-23 06:49 分类:问答Control flow graph of a program
I\'m taking a compiler class right now and we\'re at the poin开发者_JAVA技巧t where we have to build a CFG in order to implement optimizations. One thing I can\'t figure out is how many CFGs are there[详细]
2023-02-22 16:46 分类:问答How does a compiler build the syntax tree?
At which point the compiler 开发者_如何学编程builds the syntax tree? How does it form the tree and translate the tree while building the executable?A compiler that builds a syntax tree does so during[详细]
2023-02-22 01:03 分类:问答Are there such a thing as LL(0) parsers?
I saw a question somewhere asking the difference between LL(0) and LR(0) parsers. Is there such a thing as LL(0) par开发者_运维问答sers? If so, how do they parse without looking at any token?LL(0) pa[详细]
2023-02-16 01:42 分类:问答