DC3 is a complete but limited VB like compiler/interpreter that can be used for learning how to create a complete and fully functional compiler. It comes with its complete source code in Visual Basic 6.
It compiles simple VB like programs and creates a byte code executed by a Virtual Machine, like Java and .NET languages.
Features:
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