transfer the old code to vs2010, may not compile

Signed-off-by: jyan <codedhead@gmail.com>
Merge https://github.com/codedhead/yacc