compiler-theory
Identifying the next character in a string is capital or not
I am writing a C++ program. I have an array of char array trans[20][100]. Actually each string of trans is a transition of a grammar(Programming language transl开发者_如何学JAVAators). I want to check[详细]
2023-02-15 12:34 分类:问答Phases of a compiler?
At which phase of the compilation are keywords of a programming language recognized? I am sort of confused between[详细]
2023-02-15 11:59 分类:问答Is it possible to convert low level languages to high level ones?
We know a compiler can convert h开发者_如何学Pythonigh level languages to lower ones,like convert C to assembly.[详细]
2023-02-12 07:02 分类:问答Is there a way to compile C++ to C Code? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2023-02-11 21:18 分类:问答Does evolution of microprocessors warrants evolution of compilers and language standards?
As chip makers add new functions, 开发者_C百科instructions etc to new chips, do we need newer versions of the compilers accordingly to use those new instructions and features of the chip? Also does it[详细]
2023-02-09 19:44 分类:问答How to build symbol tables for different lexical levels?
I\'m in the middle of building a compiler for a C-like language. I\'m somewhat done with the lexer and parser. Right now, I\'m trying to do semantic analysis and am trying to build symbol tables.[详细]
2023-02-08 00:58 分类:问答In parsing theory, what is the opposite of "derive"?
Suppose you have a grammar such as this: S → A A &rar开发者_开发问答r; E \"=\" E In this example, S derives the sequence (E \"=\" E). However, what is the opposite of this? That is, what is an[详细]
2023-02-01 04:42 分类:问答Is it a solvable problem to generate a regular expression that matches some input set?
I provide some input set which contains known separated number of text blocks. I want to make a program that automatically generate 1 or more regular expressions each of which matches every text bloc[详细]
2023-02-01 02:13 分类:问答ARB Fragment If/Else
I have a problem and I can\'t seem to wrap my head around it, so I was hoping someon here might be able to help me out.[详细]
2023-01-28 02:39 分类:问答complexity of parsing C++
Out of curiosity, I was wondering what were some \"theoretical\" results about parsing C++. Let n be the size of my project (in LOC, for example, but since we\'ll deal with big-O it\'s not very impor[详细]
2023-01-25 10:36 分类:问答