Menu

English C / News: Recent posts

predicate functions

Sentences like (X) contains (y) are valid function calls now. No need to construct contains (X,y).

Posted by Maciej Kozaczko 2003-07-08

functions with prepositions

Now you can create and invoke functions with arguments separated by prepositions. So after you create a function: "float divide (float a ) by (float b)", whenever you invoke it, "divide (x) by (y)", you need not to remember what argument is a dividend and what is a divider.

Of course "divide(r,q)" is unambigious for mathematicians, "divide (r) by (q)" is much more secure because it is unambigious for both mathematicians and other programmers :-)... read more

Posted by Maciej Kozaczko 2003-06-11

of-construction

In English C you need not to write the_string->length or the_string.length or (*the_string)->length. You can write each of these expressions as: length of the string. No matter if the_string (or in English the string) is a structure variable, pointer to the structure, pointer to pointer to the structure (or pointer to pointer to pointer to ... etc). Of course you always want to do something with length field of this strcture. The of-construction frees you from thinking about such a semantic errors and improves readness of the English source code.

Posted by Maciej Kozaczko 2003-06-05

possessive determiners

Possessive determiners enable accessing fields of complex structures in any procedure body as if this procedure were a class method. Moreover, this procedure may behave as if it would be a class method of more than one structure. Currently, there are only possessive determiners: 'my' and 'your', but there is no problem to extend it to contain 'its', 'her', 'his', or other.

Posted by Maciej Kozaczko 2003-05-10

new expression parsing method

Previous parsing of expressions did not realy parse expressions but it operated on string replacements. It could lead to problems in string interpretations and not all expressions were parsed correctly. The revision 1.21 of the English C source code allows to parse expressions containing variable and procedure identifiers and it produces (more) correct C source code for these expressions.

Posted by Maciej Kozaczko 2003-04-11

object oriented feature

english prefix 'my' allows to program in the OO style. Procedures with this prefix need not to be methods. You decide what structure is yours. Programming with 'my' allows your source code to be cooperative rather than the imperative one.

Posted by Maciej Kozaczko 2003-04-06

multi word local variable names

If you would like to use in your C source code variable names that are longer than 1 word you can write your code in this manner (i.e. write it in E source code) and then traslate them to C code using this english compiler

Posted by Maciej Kozaczko 2003-04-03

CVS

I succeeded to upload main.c to CVS repository at sf.net

Posted by Maciej Kozaczko 2003-03-18
MongoDB Logo MongoDB