Skip to content

Commit 713aabd

Browse files
committed
fix ignore WS
1 parent c0bdb7e commit 713aabd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

book.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
\def\racketEd{0}
2828
\def\pythonEd{1}
29-
\def\edition{0}
29+
\def\edition{1}
3030

3131
% material that is specific to the Racket edition of the book
3232
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
@@ -4649,8 +4649,8 @@ \section{From Parse Trees to Abstract Syntax Trees}
46494649
white space, so we recommend using Lark's \code{\%ignore} directive
46504650
as follows.
46514651
\begin{lstlisting}
4652-
WS: /[ \t\f\r\n]/+
4653-
%ignore WS
4652+
%import common.WS_INLINE
4653+
%ignore WS_INLINE
46544654
\end{lstlisting}
46554655
Change your compiler from chapter~\ref{ch:Lvar} to use your
46564656
Lark parser instead of using the \code{parse} function from

0 commit comments

Comments
 (0)