Tip:
Highlight text to annotate it
X
Let's go through a possible answer together.
I have to name my procedure with t.
That tells the interpreter that I'm defining a token.
Now I give the name of the token, LANGLESLASH.
That was given as part of the problem.
All of our tokens are actually functions.
We've been eliding that bit. We're still going to skip over it.
Next I have to have a regular expression for the string that matches the token,
and here again there's only 1 string that matches,
and I'm going to return the token unchanged.