I'm trying to create a kind of "shorthand" syntax for Java that replaces verbose keywords with less verbose ones, so that I can write Java code with fewer keystrokes. Is there any way to replace keywords such as "public" and "static" with abbreviations of those keywords, and then translate that to "normal" Java code?
//would it be possible to convert this to "normal" Java code?
pu cl ModifiedSyntaxExample{
pu st void main(){
System.out.println("Hello World!")
}
}
This would be equivalent to:
//would it be possible to convert this to "normal" Java code?
public class ModifiedSyntaxExample{
public static void main(){
System.out.println("Hello World!")
}
}
The first version is less verbose (and therefore easier to type), because "public" and "class" are replaced with the abbreviations "pu" and "st".