The scanner has to iterate over each line, and implement a simple algorithm to ignore the current line if it is a comment or part of a multiline comment.
It adds each line to the cleaned source only if it is not a comment or part of one.
Character Stream
This step is basically taking this:
var myVar = 10;
And turning it into this:
[v, a, r, , m, y, V, a, r, , =, , 1, 0, ;]
The list of characters above is known as a character stream. I don’t suppose we need to see how Insidion implements this because it’s as simple as source.split(’’) .