Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS320
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
CS320
Commits
2e5a61a6
Verified
Commit
2e5a61a6
authored
3 weeks ago
by
Sankalp Gambhir
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos ex 1.3.2
parent
48ed9daf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
info/exercises/src/ex-01/ex/dfa.tex
+3
-2
3 additions, 2 deletions
info/exercises/src/ex-01/ex/dfa.tex
info/exercises/src/ex-01/ex/lexer.tex
+2
-2
2 additions, 2 deletions
info/exercises/src/ex-01/ex/lexer.tex
with
5 additions
and
4 deletions
info/exercises/src/ex-01/ex/dfa.tex
+
3
−
2
View file @
2e5a61a6
...
...
@@ -211,8 +211,9 @@
\item
As generalized regular expression (with complement):
\(
(
\Sigma
^
*
aa
\Sigma
^
*)
^
c
\)
. Without complement:
\(
(
b
^
*(
ab
^
*)
^
*)
^
*
\)
. This is the language
of words that contain no consecutive pair of
\(
a
\)
's. In set-notation:
\Sigma
^
*)
^
c
\)
. Without complement:
\(
b
^
*(
ab
^
+)
^
*(
a
\mid
\epsilon
)
\)
.
This is the language of words that contain no consecutive pair of
\(
a
\)
's. In set-notation:
\begin{equation*}
\{
w
\mid
\forall
i.
\;
0
\leq
i < |w|
\land
w
_{
(i)
}
= a
\implies
(i + 1
\geq
|w|
\lor
w
_{
(i + 1)
}
\neq
a)
\}
\end{equation*}
...
...
This diff is collapsed.
Click to expand it.
info/exercises/src/ex-01/ex/lexer.tex
+
2
−
2
View file @
2e5a61a6
...
...
@@ -125,8 +125,8 @@ lexer drops any \texttt{skip} tokens.
\begin{solution}
\begin{enumerate}
\item
\texttt
{
[keyword("let"), id("x"), equal, number("5"), keyword("in"), id("x"), op("+"), number("3")]
}
\item
\texttt
{
[
i
d("let"), number("5"), id("x2")]
}
\item
\texttt
{
[keyword("let"), id("x"), equal
("=")
, number("5"), keyword("in"), id("x"), op("+"), number("3")]
}
\item
\texttt
{
[
keywor
d("let"), number("5"), id("x2")]
}
\item
\texttt
{
[id("xin")]
}
\item
\texttt
{
[comp("=="), op(">")]
}
\item
\texttt
{
[comp("<="), comp("=="), op(">"), comp("<="), equal("=")]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment