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