Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Generalizing programming language patterns in CodeBlocks
beqroson:
--- Quote from: dmoore on November 09, 2013, 06:59:09 pm ---Why don't you (a) just explain what it is rather than have us download some random file from a web-site known for malware, or (b) share your code publicly using one of the many reputable source hosting sites: github, gitorious, launchpad, pastebin, sourceforge, berlios.
--- End quote ---
a) Of course it could be malware. You dont know me and I dont know you.
b) Share the code? What in the code is interesting as it is neither finished nor advanced nor complete.
c) I may have picked the wrong sub-forum. I should have placed this discussion on the suggestion forum and moved up from there.
d) If you want me to create a sample that you can compile yourself, someone will ask why I dont compile it for them instead of giving the code.
e) The program is not malware.
f) This discussion is not over yet. And if I get what I want, it will not be put down, but developed into a new standard for C++ and other languages where it is trivial to program using your innate language.
beqroson:
Instead of pseudo code, perhaps I can describe usage patterns that I personally would like to see.
Open a source code project downloaded from the net:
1. Open the project.
2. Select menu->languages->Italian, which immediately translates the source into the Italian language.
Compile the source project:
1. Press menu->Build, the Italian code is "JIT"-translated into code known by the current compiler, such as GCC.
Release a source header set:
1. Press menu->Export, the code is stripped off the Italian language and is left with only the compiler known language, such as C++.
Start using a third-party header dependent library, such as WxWidgets.
1. Download and install the header files.
2. Download and install/or create your own/ translation module that translates all the the terms, such as wxComboBox into wxKombinataBoxxy (or what it is called in Italy? ???
Create your own source distribution, such as source code for CodeBlocks:
1. Create the source.
2. Attach a set of already completed source translation modules.
3. Pack it up in a bundle. The users can themselves select which language is preferred.
ollydbg:
Read this thread twice, I don't understand what you are going to achieve.
Only one question: Do you understand the "Parsing technology"? If the answer is yes, you can write parsers for a specific language. If the answer is no, I don't think can do much about "code completion feature".
beqroson:
--- Quote from: ollydbg on November 10, 2013, 07:40:37 am ---Read this thread twice, I don't understand what you are going to achieve.
Only one question: Do you understand the "Parsing technology"? If the answer is yes, you can write parsers for a specific language. If the answer is no, I don't think can do much about "code completion feature".
--- End quote ---
No, I dont know specifics about any "Parsing technology". However, I have written a parser for equations, does that help?
beqroson:
--- Quote from: ollydbg on November 10, 2013, 07:40:37 am ---Read this thread twice, I don't understand what you are going to achieve.
Only one question: Do you understand the "Parsing technology"? If the answer is yes, you can write parsers for a specific language. If the answer is no, I don't think can do much about "code completion feature".
--- End quote ---
I will look into this about the code completion. I will be aiming at reusing the basic code completion plugin and place translation on it. This can be done for a specific language where a code completion plugin already exists. For a programming language with no code completion plugin available I was thinking to let the user tag their code invisibly by selecting from a pop-up menu and thus making the code completion feature available without using any parsing technology.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version