Questions tagged as 'compiladores'

2
answers

Differences between a transpiler and a compiler [duplicate]

You've heard a lot about the term transpiler ( transpiler ) lately. However, the difference of a transpiler (Babel, for example) to a traditional compiler does not seem clear to me. The two translate code from one language to another, do no...
asked by 25.05.2017 / 22:01
1
answer

NullPointerException when trying to get Java compiler instance

Next, I'm trying to get a Java compiler instance through the following code: JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); if (compiler == null) { System.out.println("No compiler"); return; } The problem is that it...
asked by 05.10.2016 / 00:43
1
answer

Parser identifying tokens in the wrong way (Flex and Bison)

I am implementing a compiler based on the Tiger language proposed by Andrew Appel's book "Modern Compiler Implementation in C". Link: link I'm using the available files on the book's website, but when I run the parser, the tokens reported i...
asked by 17.02.2016 / 21:05
1
answer

Generate .exe from my Program

Well I'm in doubt I saw in a forum something about this Content found in the forum and I am looking for more explanations and examples I am developing a Database Auto-Backup generating your .SQL file and compressing into a .zip or .rar file...
asked by 15.05.2018 / 16:37
0
answers

Error in the code of a calculator when saving the tokens, flex

The mentioned error is in the 6th line of code. Running this code in the VS developer with win_flex
asked by 05.01.2018 / 15:04
0
answers

Error compiling a .cpp file using MinGW

Today I reinstalled MinGW and setup it again, tested it several times with some programs in c ++ and was working fine, but now I try to create new programs and when I will compile using the command: g++ -o file file.cpp It accuses the follo...
asked by 27.05.2018 / 23:41
1
answer

Doubt with the switch of the Generator of Lexical and Syntactic Analyzers (GALS)

GALS generates the code in Java. I want to put it in the eclipse to make a little screen and such. I was told that in method nextState of class lexico , you have to put a switch with a number. But where do these numbers co...
asked by 24.06.2017 / 01:05
1
answer

I'm having a problem with Dev C ++ in displaying members of a class

To be more exact, when I press "." after some object, type I declare a vector: vector<int>Random; So far so good, so when I start typing: Random.push_back(); Dev c ++ does not help me complete, I know it sounds paranoid, but is i...
asked by 18.01.2017 / 17:48
1
answer

Optimization with GCC

Recently I've been wondering if it's possible for the compiler with some flag optimization, avoid copying two arrays to the .rodata section? Thus, memory addresses would be the same, eg const char str[7] = "string"; const char str1...
asked by 31.10.2018 / 03:13
1
answer

How to install C ++ compilers and libraries from previous versions in visual studio 2015?

How can I install old versions of compilers and c ++ libraries in visual studio 2015 without having to install the IDE together? (that is, only what is needed to compile, run, and debug applications). I would like to leave it like this:...
asked by 26.11.2016 / 00:29