Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Generalizing programming language patterns in CodeBlocks

<< < (4/13) > >>

ToApolytoXaos:
I have been following this topic and frankly all I read is the same repetitive thing without an actual sample either in the form of pseudo or literal programming code.

If you want a generic natural language mechanim, you should see how Perl is implemented by a linguist (Larry Wall). It's a great example of a powerfully flexible language that does exactly what you have in mind I would say. Again, maybe I'm wrong.

Another great example would be Lua, yet another powerful scripting language (and old too; blimey, 20 years old already!), that can let you use it to create any kind of Domain Specific Language (DSL) with its amazing metatable and metamethod operations.

Now, don't take my word as the absolute way of doing things, just experiment with your ideas; but provide us something here so we can get a rough idea of what you need.

beqroson:

--- Quote from: ToApolytoXaos on November 06, 2013, 07:56:56 am ---I have been following this topic and frankly all I read is the same repetitive thing without an actual sample either in the form of pseudo or literal programming code.

If you want a generic natural language mechanim, you should see how Perl is implemented by a linguist (Larry Wall). It's a great example of a powerfully flexible language that does exactly what you have in mind I would say. Again, maybe I'm wrong.

Another great example would be Lua, yet another powerful scripting language (and old too; blimey, 20 years old already!), that can let you use it to create any kind of Domain Specific Language (DSL) with its amazing metatable and metamethod operations.

Now, don't take my word as the absolute way of doing things, just experiment with your ideas; but provide us something here so we can get a rough idea of what you need.


--- End quote ---

Yes, well, the discussion would be if the idea is desirable, and next if it is implementable. I hope to give you a showcase this evening. This will enable me also to dig into some code and my mind works better to figure out if it is good or not. Also it is a good way to visualize what I intend.

beqroson:

--- Quote from: ToApolytoXaos on November 06, 2013, 07:56:56 am ---If you want a generic natural language mechanim, you should see how Perl is implemented by a linguist (Larry Wall). It's a great example of a powerfully flexible language that does exactly what you have in mind I would say. Again, maybe I'm wrong.

--- End quote ---

Aha. No, I used the term natural language too casually. What I really meant was to be able to write code in your mother tongue. Not that the actual compiler will know anything specific about your mother tongue. My showcase is coming together as expected so far, so if I dont hit a major snag I can upload it relatively soon.

Hmm, actually I have no specific web space to upload it to and link. Is there any suitable place where I can upload a zip file between 50-150MB to link in this forum? I was planning to create a codeblocks project to use together with a compiled console application and hook it up in the codeblocks IDE.

Update: As usual there was a programming error which I thought was a compiler version error. So after some hours recompiling libs I realize that it was a bug. I will get back on this tomorrow. However, I have not much time tomorrow, so this is going to take a couple of days. At least I managed to update to GCC 4.8, wxwidgets 3.0-RC2 and some others.

beqroson:
Now I have made a small showcase test. It is a Codeblocks project that you can open with instructions in the header file. The file can be retrieved from a site that is on www.fileconvoy.com that can store temporary files on the net. This is the first time I use the fileconvoy service, so if there is any problem, please report them to me in here. The file:

http://www.fileconvoy.com/dfl.php?id=gbd5fa2503222f2ef999409854738b3006fc813032

Update: This project will only be usable on Windows.

dmoore:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version