medoh772:
@Coding Badlyno, this is the first time to hear about all of these terms. I looked up on the internet thought! but I believe it can be much simpler than that! all what I want to do is to do a one to one mapping between words, the Arabic word and the English word. is this possible?
But that isn't what you showed in your example.
You are doing much more than a 1 to 1 mapping of words.
In your example, you didn't just substitute the "if".
you reversed some of the order but not all of it and also
changed some of the actual syntax.
That is going to make things VERY difficult as now you are going to have
actually write a parser.
medoh772:
I apologize about my poor English. I didn't mean to translate the IDE itself! I want to translate the syntax!for example:
this is the usual syntax:
if(x==1){
x=4;
}I want the user to be able to writ it like this:
?? (?==1){
? = 4;}
my plugin will basically take the Arabic Syntax and convert it to the corresponding English one. Can I do such a thing?
In your example above, you actually even mentioned "syntax".
If you change the syntax, like you have done you will have to write a parser
as you are now no longer using C syntax.
Note that in your example,
the if has been moved to the right from the left, The parenthesis have moved
to no longer surround the expression
but yet the braces and the semicolon are still remaining on the right.
This is not just a simple word substitution.
You are changing the actual C language syntax
and also changing only some of left/right ordering
which is going to make things very difficult.
I think just handling the right<->left issues is quite difficult
without trying to change the syntax as well.
This looks like a very difficult task.
--- bill