|
Re: Make a compiler?
[Re: upsidedownman]
#254997
03/06/09 22:02
03/06/09 22:02
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
Yes, you can use Lite-C to write a compiler. However, C or C++ would be a better choice for this because they are essentially the same as Lite-C just without the reference to the engine library (which you obviously don't need to write a compiler) and without any other dependency that you don't need.
But then again, I don't quite understand what you want to do.
Your friendly mod is at your service.
|
|
|
Re: Make a compiler?
[Re: V_Software]
#255008
03/06/09 23:14
03/06/09 23:14
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
Gamestudio already includes a compiler for Lite-C, you don't have to write one yourself. What do you mean with "little wrapper for lite-c"?
Your friendly mod is at your service.
|
|
|
Re: Make a compiler?
[Re: upsidedownman]
#255014
03/06/09 23:50
03/06/09 23:50
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
To be honest, I still don't quite understand you because you seem to confuse some terms. However, I think you want to use some sort of scripting or programming language as extension for your Lite-C application which is absolutely possible and legal. There are several approaches which you can use. The easiest way would probably be by including an existing library such as LUA, Python, etc.
If you really want to design your own language, you will have to write an interpreter to parse the code and something to execute the parsed instructions, most likely a virtual machine. Depending on how complex your needs are, this can be quite easy but it can also be quite hard.
Again, sorry if that's not what you want to do.
Your friendly mod is at your service.
|
|
|
|