![]() | ![]() |
![]() | You can find some features by watching directly the BNF definition file. it supports: - only simple VB types like string, integer (hexadecimal, octal), float, boolean - global and local variables - functions and subs - operators like +,-,*,/,\,imp,eqv,xor,or,and,not,>=,<=,>,<,<>,=,&,mod,^ with the VB6 precedence order. - the 'if' and 'while' statements - VB functions like 'print', 'msgbox', 'clng', 'cstr', 'inputbox', 'rnd', 'exit' - recursion Differences from VB6 - operators like +=,-=,*=,/=,++,-- - variable declaration with direct assignment - operators only work with the same types (use conversions functions like clng, cstr to switch types) - parenthesis is always required when calling functions or subs Not done - It cannot manage user defined types (UDT) - it doesn't support statements like 'for', 'do loop', etc... - it doesn't support 'byref' parameters, only 'byval' - it doesn't support objects - it doesn't support arrays |