TCL
The idea is to have everything in strings. The strings will have a sort of VAT set up before any of the strings. Where it will be set up like: Variable name (string), 0, Size (word), etc. Following will be the strings, non-zero terminated. Math will be done so that the "numbers" (which are string representations of numbers humans read) get the decimal points aligned together and then basic addition, subtraction, multiplication, and division get done on a "per character" basis. Everything will be calculated LTR as a means of making it easier on myself. Parenthesis will be counted as function names. For functions, they will be defined as: 0, code to be used for the function. 0 is the new line token (see about DCS textbox support to make my life really easy). Possibly "compile" the code: shortens "if (" to a single byte, probably between 0 and 10h, leaving the rest to be stuff to be displayed. Concatting strings, "subbing" strings, and "indexof"/"instring" of strings will be included. When the program encounters a new variable (started with %), it will return an error, maybe eventually make a "null" string. Things will be displayed on a "terminal" style screen, with monospaced 4x6 size font (DCS font, but monospaced). Some functions that will be needed are: createVar (hl=string location of name, 0 terminated. de=data to send), deleteVar (hl=name of variable to delete), compareString (hl=first zero-terminated string, de=second string), moveDataFwd (bc=size to move forward), moveDataRev (guess), MOAR! I will reserve 4000 bytes for variable structure, and programs will be copied somewhere (end of variable stuff? Read backwards?).
The above is literally copied and pasted from a document on my iPod I made to help me get some stuff down. Souvik asked about "reading backwards", basically, it would start the data at the end (you read from the end of the 4000 byte area) and go backwards, instead of the conventional forwards method. I'm planning on making this when I get time between my projects. I titled it "TCL" because that is the thing it reminded me the most of. It will be in Assembly and for DCS. I'm mainly posting this so people can ask ideas and help me finalize details before I begin working on it, so please, ask questions Most of the details were thought up last night about 4 am because I couldn't sleep, so it may seem very stupidly put together, that's part of the reason I am wanting people to help me (I'm still sleep deprived >.>)
The idea is to have everything in strings. The strings will have a sort of VAT set up before any of the strings. Where it will be set up like: Variable name (string), 0, Size (word), etc. Following will be the strings, non-zero terminated. Math will be done so that the "numbers" (which are string representations of numbers humans read) get the decimal points aligned together and then basic addition, subtraction, multiplication, and division get done on a "per character" basis. Everything will be calculated LTR as a means of making it easier on myself. Parenthesis will be counted as function names. For functions, they will be defined as: 0, code to be used for the function. 0 is the new line token (see about DCS textbox support to make my life really easy). Possibly "compile" the code: shortens "if (" to a single byte, probably between 0 and 10h, leaving the rest to be stuff to be displayed. Concatting strings, "subbing" strings, and "indexof"/"instring" of strings will be included. When the program encounters a new variable (started with %), it will return an error, maybe eventually make a "null" string. Things will be displayed on a "terminal" style screen, with monospaced 4x6 size font (DCS font, but monospaced). Some functions that will be needed are: createVar (hl=string location of name, 0 terminated. de=data to send), deleteVar (hl=name of variable to delete), compareString (hl=first zero-terminated string, de=second string), moveDataFwd (bc=size to move forward), moveDataRev (guess), MOAR! I will reserve 4000 bytes for variable structure, and programs will be copied somewhere (end of variable stuff? Read backwards?).
The above is literally copied and pasted from a document on my iPod I made to help me get some stuff down. Souvik asked about "reading backwards", basically, it would start the data at the end (you read from the end of the 4000 byte area) and go backwards, instead of the conventional forwards method. I'm planning on making this when I get time between my projects. I titled it "TCL" because that is the thing it reminded me the most of. It will be in Assembly and for DCS. I'm mainly posting this so people can ask ideas and help me finalize details before I begin working on it, so please, ask questions Most of the details were thought up last night about 4 am because I couldn't sleep, so it may seem very stupidly put together, that's part of the reason I am wanting people to help me (I'm still sleep deprived >.>)