|
Post by Mikrondel on Mar 6, 2005 3:18:28 GMT
Yes, a language. Using QB. It's not impossible
An easy way would be to simply let the user pick commands from a menu, and if a command needed numbers or text to work with, the program would ask specifically for them. E.g. if the user wants to add the DisplayText command, they will be asked for the text, location, and colour. If they want to enter a variable, they must pick it from a list of variables already declared. So there would be no such thing as a syntax error, and it would much easier to program this than a "normal" language (although slower to use).
|
|
|
Post by AMan on Mar 14, 2005 2:46:00 GMT
Hay my boy, I THINK I could make a text, color, and pexil placeing program. With the code I'ld use I might as well just use QB to do it. You and I both know my skills are limmeted. How do you save the files made with the program, and is it out of the challenge to make it a complier ( make .exe ) or you oun screen mode.
|
|
|
Post by Ildûrest on Mar 19, 2005 5:41:18 GMT
You could save the files any way you think is appropriate. You don't need to make a compiler or your own screen mode ( ) Yes, I am The Master.
|
|
|
Post by raymiew on May 15, 2005 20:22:53 GMT
To build a language, the most important and hardest thing to write is the Math Parser. Math parser has to do the following things:
functions, variables, order of presedence (the order in which you do multply, divide, add, subtract). It gets rather involved, quickly. The way in which you proceed will also depend on whether this will be a compiled language, p-code language (using a runtime engine), or Interperted language.
Raymond Walden
|
|
|
Post by Ildûrest on May 16, 2005 2:35:45 GMT
Well you can avoid such problems by having an [annoying] step-by-step maths system only.
Something like: Add <5 -> variable> Let <function(arg,arg2) -> variable2> Mul <variable2 -> variable>
|
|
|
Post by QBGuy on May 30, 2005 15:27:39 GMT
Does it have to have a compiler, or would it be like a scripting language?
|
|
|
Post by Mikrondel on May 31, 2005 11:43:17 GMT
It's really up to you... not that very many people are capable of writing a compiler, but if you already know assembler then it's probably within your reach. My idea for an easy way to do this was to select commands and variables from a menu, thereby making the reader really easy to make. But keep in mind that this is just a project idea, not a homework task. You can do it however you like, I'm just around to help you with anything and give you suggestions.
|
|
|
Post by HeatRISC on Mar 15, 2006 3:48:58 GMT
you know if you plan to write your own language then some Knowledge of the X86 assembler is probably a good thing. and the best tutorial for that Architecture on the net is "Art of Assembly". you won't find a better tutorial anywhere else. look it up on google. great learning, you'll never look at code the same way again Heat_RISC
|
|
|
Post by Mikrondel on Mar 16, 2006 7:35:25 GMT
Thanks for the suggestion (it is a rather good tutorial and I've used it here and there).
Do feel free to hang around here, friend, people who understand assembler are always welcome.
I would however advise you not to post help in threads that have been long dormant. It's not worth the time. Unless someone expresses interest in this idea then there's no point.
|
|