Writing a JVM Compiler – Parsing

Parsing is used to check whether a string matches a regular expression. If there is a match then the string is tokenized and the data is extracted to be stored in the memory. Example variable definition Parsing for the variable definition will ignore the “= 10” and “= 20”. Other parsers such as an “AssignmentParser” […]

Writing a JVM compiler – Tokenization

Since I first started programming I was always been interested in understanding how a programming language works. A lot happens in the background and I feel that understanding a layer underneath the language you program in can be very beneficial to understanding a language as a whole. First I decided ┬áthat I would start by […]