Skip to content
Snippets Groups Projects
Verified Commit 48ed9daf authored by Sankalp Gambhir's avatar Sankalp Gambhir
Browse files

Correct lexing result ex 1.6

parent 75f86361
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -144,10 +144,9 @@ lexer drops any \texttt{skip} tokens.
There are many possible solutions. The key is to notice which tokens have
overlapping prefixes.
An example is \texttt{letx1in}, which would be lexed as
\texttt{[keyword("let"), id("x1"), keyword("in")]} if we check acceptance in
order of priority, but as \texttt{[id("letx1in")]} if we run them in
parallel.
An example is \texttt{letx1}, which would be lexed as
\texttt{[keyword("let"), id("x1")]} if we check acceptance in order of
priority, but as \texttt{[id("letx1")]} if we run them in parallel.
\end{solution}
\end{exercise}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment