I am coding a lexer that reads the input from a text file and displays the token ID's of each of the words in the file (e.g. if the file contains "<HEAD>" it displays the Symbol ID 10).
Below is my code that requires the user to input HTML code, which displays the token ID's:
Code:
import java.io.*;
public class Test {
public static void main (String[] args) throws Exception