Skip to content
Snippets Groups Projects
Commit 4d365036 authored by Marcin Wojnarowski's avatar Marcin Wojnarowski Committed by Sankalp Gambhir
Browse files

ex1: minor fixes in Lexer exercises

parent 0f406261
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
......@@ -63,7 +63,7 @@ digits \(\{0 - 9\}\).
\node[state,accepting] (ql_3) [right=of ql_2] {$q_{let}$};
%
\node[state] (qin_1) [right=of q_0] {$q_{i1}$};
\node[state] (qin_2) [right=of qin_1] {$q_{in}$};
\node[state,accepting] (qin_2) [right=of qin_1] {$q_{in}$};
%
\node[state] (qite_1) [below right=of q_0] {$q_{i2}$};
\node[state] (qite_2) [right=of qite_1] {$q_t$};
......@@ -128,8 +128,8 @@ lexer drops any \texttt{skip} tokens.
\item \texttt{[keyword("let"), id("x"), equal("="), number("5"), keyword("in"), id("x"), op("+"), number("3")]}
\item \texttt{[keyword("let"), number("5"), id("x2")]}
\item \texttt{[id("xin")]}
\item \texttt{[comp("=="), op(">")]}
\item \texttt{[comp("<="), comp("=="), op(">"), comp("<="), equal("=")]}
\item \texttt{[comp("=="), comp(">")]}
\item \texttt{[comp("<="), comp("=="), comp(">"), comp("<="), equal("=")]}
\end{enumerate}
\end{solution}
......
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