Hey all,
Well, it's something I've wanted to do for quite a while (ever since discovering QBasic in 2000), but something I've never managed to do... Shen's 'Anime smiley coding' app type thing has made me want to develop my own language.
I already have alot of ideas for commands (the standard PRINT, INPUT etc.) Plus a few more I'd like to implement.
The problem is, where do I start? Can someone please give me an example of how to get specific data from an edit box?
For example...
User types...
PRINT "hello"
Then clicks button, I want to scan the edit box for the command PRINT, then get the text enclosed in "" and then display it, minus the PRINT in a new box.
Please... Help!
Danke!
Viddy A ClockWork Orange, Droogs...
Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!
Making a programming language (a compiler) is not really something click products are good at ... they are simply not created to do so ... it should however be possible ... how? Be creative ...
Making your own seudo programming language is possible though ... allthough it works best if you make your compiler in a real programming language like QBasic, Pascal, Java, C, C++ or what ever you choose to use ...
You could tokenise your string. First into seperate lines then into seperate words. Pick the first word, compare it to your list then use the words that follow it to get the input.
That's really about as far as you can get with MMF in terms of lexico...
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
7th April, 2004 at 06:53:48 -
Tig's has some very useful script examples and parsing examples at his website:
www.tigerworks.co.uk
I'd go the stupid crappy BASIC way and put each command on a separate line Tokenise it with Chr$(15) then just go through it, letter by letter. For example, first word calls a function, second, third, fourth etc. are its parameters.
I'm also making a programming language. It's made up entirely of puctuation and I dubbed it "MuteGibe".
It's halfway done and works!
Right now, I'm making it so it can do graphics.
I've already made it be able to:
-Use nearly infinite variables
-change values of a variable
-display variables as text
-use loops
-use "if" statements
-play 3 beep sounds
-erase the text
-check if a key is held on the keyboard(enter and arrow keys only)
Well, first off, I don't think you can make a programming languge with MMF. Try C++! It rocks! Although I haven't mastered making a programming languge, I've been able to make a small computer program (it was a data base, it works well ) and I've made a few 3-D games. Start with something simple, like a caculator or something, then work your way up to making a languge. Good luck.
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.
@ Snerlin - that sounds really cool, I hope you're gonna release it to us klikkers to play around with when you're done! *And PM me your 'source' code lol, jk
@ Easer - I used some basic C++ for about half a year when I bought the genesis 3d development kit, I just couldn't really get the hang of it though! But I agree when you say it rocks, I had alot of fun making little pointless apps (VC++ 6.0)
But yeah, that's good advice, I think I should be learning the basics of working with MMF extensions before trying to make a language, though to be honest I didn't think it was very complicated, but I do tend to underestimate things alot
Viddy A ClockWork Orange, Droogs...
Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!
This might go onto being a new language, might not... depends on how long until I get bored of it, I guess.
PS. no stealing! :|
If you want to use it, ask me
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
er.. no offence, but whatever´s going on here should STOP. No one is making a new coding language, there are too many already. In any case code an EDITOR, a tile editor.. or an isometric editor.. that would be easier than starting from scratch. C++ was made in C. Are you going to make C+=2 or something? hope you are good at c++ coding. Oh, and respect to the isometric editor.. dont do that either cuz its also too hard for y´all bitches, try making a square oldschool tile editor. Thanks everyone, i'm back to the deadend jamagic coding.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
7th April, 2004 at 18:45:56 -
"er.. no offence, but whatever´s going on here should STOP. No one is making a new coding language, there are too many already"
brilliant dogzer. there are too many platform games out there already, if someone asks for help with one of those do you tell them to stop?
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
In MMF making your own scripting language will be hard. In jamagic it's a lot easier, since you can link keywords to functions to create objects(whereas in MMF you need to define an event for EVERY object you create...)
I'm starting to grasp just how complicated this could end up becoming...
Oh well, the rpg maker will just have to use 'detector' tiles to send objects in certain directions rather than the coolness of letting the user code that sort of thing.
Viddy A ClockWork Orange, Droogs...
Goddamn you to hell 'Newbie' DC Rating... Go up, UP DAMN YOU!
I thought about that too. I was thinking the only way would be, say, if any computer could hold as much variables as it had HD space, so the more HD space, the more variables could be used. Theoretically, an infinitely large HD could hold an infinite amount of variables, but, in reality that wouldn't exist. Thats how it could possibly be "nearly infinite".
I wrote CFISI, which is a Jamagic style scripting language in an extension for MMF. It was written in C++, and is primarily based on one of the advanced features of C++: inheritence. You will need to do this if you are serious about making a programming language. However, by all means you can still do it in TGF/MMF as a learning experience. In C++ it is really complicated though, and you'll be using classes, inheritence, abstract syntax trees, and plenty of pointers.
For a Click-made scripting language you can check out this:
http://www.clickteam.com/CTforum/showflat.php3?Cat=&Board=fac&Number=131757&page=&view=&sb=&o=&vc=1
It's pretty primitive but shows how to do all the parsing.
Scripting languages in Click products have several disadvantages: firstly, people have to learn your special new language to use it, unless it is based on or similar to another language, e.g. CFISI is based on Jama/C so programmers in either can pick it up relatively quickly. Also it's slow (unless in an extension like FISI) - the above example in TGF will be hard work for your computerif constantly running a script at the same time as the game.