Skip to content
Nfer zhuang edited this page May 24, 2015 · 1 revision

If you want analysis a source code, the first step is to split source code to seperate words, operators and other special chars/strings.

split rules

  1. if char is ' ' or '\t', skip it
  2. if char is alphanumeric character(a-z,A-Z,0-9), record it, until not, save this word
  3. other is special char

Clone this wiki locally