Which game engine allows you to add a c++ compiler within a game? [closed] - game-engine

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I was thinking of writing a game that teaches you the basics of c++, but in order for me to do that, I need to add a compiler that takes the input of the user and checks the correctness of the solved problem by using a set of predefined tests.

You could pack a compiler inside your game. Allow the user to write all of their code and then compile it through the command line.
Something like this:
g++ -o helloworld.exe test1.cpp
After that, you can invoke it through the Windows command line
helloworld.exe>result.txt
Which will run the program and output the result in a .txt file

Related

Is it possible to have a java compiler in unity? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have this homework where I should create an android application with a java compiler in it. the application i'm supposed to do is an educational application, with tutorials in it, my main problem is how to place a compiler in Unity. I've been searching the whole internet but can't seem to find what i need.
What do you mean by "place a compiler"? do you want to to use a compiled unity program that can compile java code or do you want to compile a unity project with java?
I think thats not a thing you can get a fast answer on how to do it.
If you have a functioning java compiler in whatever language you can bind to C# you for sure can compile java code with a c# application.
Edit:
And ofcourse its possible to write kind of a "java syntax string to c# parser" in c# on a really basic level yourself, if that is what you want.

Where are the supported languages in restructuredText code directive documented? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Probably I just can't find the magic words for google, but I just can find the documentation on how to use the code directive in restructuredText with the supported languages.
The supported languages can be found here: http://pygments.org/languages/ but I need to know what each [language] translates into in the following code snippet:
.. code:: [language]
{code here}
For instance
.. code:: bat
{code here}
seems to be windows batch files.
Where is this documented?
I don't know any place where this is documented, however looking at the docutils code shows that docutils uses pygments.lexers.get_lexer_by_name() to find the right lexer.
This function takes the short names of the lexers given in pygments lexers.

Automatic documentation of Fortran functions, modules and subroutines [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there anything like Javadoc for documenting Fortran code? How does one document the API for the many functions they have so that they can find what they want more easily?
Not "standard", but I've used a program called "robodoc" that is able to work with Fortran.
Nowadays I believe Doxygen supports Fortran as well, which IMHO is a better tool than robodoc.
As janneb mentioned "robodoc" is clean, easy and hence useful. But you it will not analyze your program and you have to do everything yourself. On the other hand, Doxygen have incorporated the modern Fortran features(derived data types, type bound procedures, ... ) and just like C++ you can get an analysis of your program along with graphs etc.

Is there an API for running Scala REPL programmatically? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Based on a thread and the Scala interpreter sources it looks like it would not be that hard to get the equivalent of
def runLine(line: String): String
but has someone written this already?
There are many examples floating out there, but they may be hard to find. Here is the one I wrote a while back:
http://code.google.com/p/simplex3d/source/browse/trunk/Simplex3dConsole/src/simplex3d/console/SimpleInterpreter.scala?r=790
The tricky part is to get the interpreter to load Scala jars. I have loaded jars manually to make it work with web-start, but in your case, simple settings.usejavacp.value = true may suffice.
You can see the interpreter in action here: http://www.simplex3d.org/console/

Velocity $fn docs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I notice in some Velocity reports I'm working with that $fn contains some built in functions for Velocity. I can't seem to find a list of these. For example, `$fn.formatNumber($fn.duration($time),'##0.0')
My google-fu has failed me on this one. Anyone have link to the docs on this?
Those are not built in. It is some utility class that either is getting added to every context somewhere or is registered in velocity-tools.xml as a custom tool.