Source code to SrcTrans v1.65; Download to SrcTrans v2.0 Final; example TFF and InputFile
Terms of Agreement:
By using this article, you agree to the following terms...
You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this article from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
How To Make A True Programming Language; Version 2
In version 1, i told you the concepts on how to make a true programming language. In this version, version 2, I will tell you how to use a special new version of my SrcTrans, The Source Code Translator to make a language. I will also give you the source to version 1.65;
program(001): program arg00 ;
var(001): var arg00 ;
body(000): begin ;
output(001): writeln(arg0) ;
endprog(000): end.;
setvar(002): arg0 := arg1 ;
Simple InputFile:
program HelloWorld.SBL
var Str
setvar Str,Hello World
body
output Str
endprog
this translates to:
program HelloWorld.SBL
Str := Hello World
begin
writeln(Str)
end.
anyway, thats just an example, have fun with it
v2.0 has a a few built in functions, but all you need todo in a dos prompt for v2.0 is type:
SrcTrans /?
and will give you information of the entire program.
Well i know its not much here, but its a lot in the long run. Please vote if you like this
IMPORTANT! Ive deleted my old domain misticsoft.net, the new domain will be basex-ngsc.com; please allow a day or two to get it together (If this comment was disrespectful, please report it.)
Your links are broken. (If this comment was disrespectful, please report it.)
9/2/2004 8:57:57 PM:
so... how exactly is this a "TRUE" programming language?... seems to be just a translator (If this comment was disrespectful, please report it.)
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)