Custom script implementation (parsing with flex and bison tools, custom instruction sets, and Qt-based instruction interpreters)
description: Grammatical features
- 3 Basic data type :int(integer) , wchar( = QChar) , wstring( = QString) ;
- Support UTF-8 input ;
- 5 Arithmetic operation : + , - , * , / , % ;
- 2 Relational operation :|| , && ;
- 2 Specific jump statement :goup(level) , godown(level) ;
- if(Conditional expression) statement ;
- while(Conditional expression) statement ;
- Unrestricted position declaration variable ;
- Support fragment compilation and full compilation ;
- Support for declaring 2-dimensional arrays ;
- Support user to add functions (need to modify part of the code) ;
- Support for passing parameters to functions ;
translater:
- Can generate custom three address codes ;
- Support for finding errors ;
- Support for data type checking ;
- Check for redeclaration errors ;
- Function parameter partial check ;
- Array subscript overflow is not supported (compilation phase) ;
- Except for 0 check (compilation phase) is not supported ;