# HG changeset patch # User Christian Urban # Date 1586517061 -3600 # Node ID df7d47a507f8ece2281c940237907ba3475190b9 # Parent 06e56c2ce34985604d5496e94a9594bd736909a1 updated diff -r 06e56c2ce349 -r df7d47a507f8 handouts/ho01.tex --- a/handouts/ho01.tex Sun Mar 22 14:21:33 2020 +0000 +++ b/handouts/ho01.tex Fri Apr 10 12:11:01 2020 +0100 @@ -37,6 +37,10 @@ %https://www.youtube.com/watch?v=gmhMQfFQu20 +% good article how languages have been influenced +% 10 MOST(LY DEAD) INFLUENTIAL PROGRAMMING LANGUAGES +% https://www.hillelwayne.com/post/influential-dead-languages/ + \begin{document} \fnote{\copyright{} Christian Urban, King's College London, 2014, 2015, 2016, 2017, 2018, 2019} diff -r 06e56c2ce349 -r df7d47a507f8 handouts/ho04.pdf Binary file handouts/ho04.pdf has changed diff -r 06e56c2ce349 -r df7d47a507f8 handouts/ho04.tex --- a/handouts/ho04.tex Sun Mar 22 14:21:33 2020 +0000 +++ b/handouts/ho04.tex Fri Apr 10 12:11:01 2020 +0100 @@ -10,8 +10,8 @@ \section*{Handout 4 (Sulzmann \& Lu Algorithm)} -So far our algorithm based on derivatives was only able to say -yes or no depending on whether a string was matched by a regular +So far our algorithm based on derivatives is only able to say +yes or no depending on whether a string is matched by a regular expression or not. Often a more interesting question is to find out \emph{how} a regular expression matched a string? Answering this question will also help us with the problem we @@ -86,9 +86,9 @@ of two component values ($v_1$ and $v_2$). My implementation of regular expressions and values in Scala is -shown below. I have in my implementation the convention that +shown below. I use the convention that regular expressions are written entirely with upper-case -letters, while values just start with a single upper-case +letters, whereas values start with a single upper-case character and the rest are lower-case letters. {\small\lstinputlisting[language=Scala,numbers=none,linebackgroundcolor= diff -r 06e56c2ce349 -r df7d47a507f8 progs/compile.scala --- a/progs/compile.scala Sun Mar 22 14:21:33 2020 +0000 +++ b/progs/compile.scala Fri Apr 10 12:11:01 2020 +0100 @@ -112,7 +112,7 @@ def l(args: Any*): String = sc.s(args:_*) ++ ":\n" } -// this allows you to write things like +// this allows us to write things like // i"add" and l"Label"