A system and a method are disclosed that enable abstract syntax tree-based (AST) code editor on mobile phones. The keys on the keyboard include nodes or small sub-trees of the AST of the code. To insert a new syntax, the keyboard is tapped. The system converts the inserted code into an editable format depending on nature of the code. The syntax includes all the necessary structural parts of the code. To allow the users to enter new code, the system includes placeholders which are empty nodes. The system automatically detects the keys used in the program and the keys used previously and provide the user necessary keys, variables and every language feature used in the programming language. This system and method prevents the user from making syntax errors.
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.
Youra, Zev, "Abstract Syntax Tree-Based Code Editor For Mobile Phones", Technical Disclosure Commons, (August 22, 2017)