summaryrefslogtreecommitdiff
path: root/src/system.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.l')
-rw-r--r--src/system.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system.l b/src/system.l
index b77255e..6c3cfb7 100644
--- a/src/system.l
+++ b/src/system.l
@@ -2,10 +2,12 @@
%option noyywrap
%option debug
%option yyclass="Lexer"
+%option yylineno
%{
#include <iostream>
#include "system.tab.hh"
+#include "system.loc.hh"
#undef YY_DECL
# define YY_DECL template<> parser::symbol_type Lexer<parser::symbol_type>::yynlex ()
@@ -39,6 +41,7 @@ core: { return parser::make_CORE(); }
mem { return parser::make_MEM(); }
total { return parser::make_TOTAL(); }
+avail { return parser::make_AVAIL(); }
cache { return parser::make_CACHE(); }
share { return parser::make_SHARED(); }
tswap { return parser::make_TSWAP(); }