change makefile: support other platforms than linux
refactor the parser: classify token object
fix a bug that the parser does not parse a dot before a delimiter
add a test for prev bugfix