]> git.saurik.com Git - bison.git/blobdiff - examples/calc++/calc++-scanner.ll
Bind examples/calc++ to the package.
[bison.git] / examples / calc++ / calc++-scanner.ll
index 7b1e4ef790eef8081cb40735a8a3ffdd6285d2eb..750e6ca7db310670472f9115035bd088cf59bce0 100644 (file)
@@ -10,10 +10,12 @@ id    [a-zA-Z][a-zA-Z_0-9]*
 int   [0-9]+
 blank [ \t]
 
+%{
+# define YY_USER_ACTION  yylloc->columns (yyleng);
+%}
 %%
 %{
   yylloc->step ();
-# define YY_USER_ACTION  yylloc->columns (yyleng);
 %}
 {blank}+   yylloc->step ();
 [\n]+      yylloc->lines (yyleng); yylloc->step ();