Mercurial > octave-nkf
comparison src/lex.ll @ 10019:7ad32bf759c3
lex.cc: Use %top block to include config.h
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 23 Dec 2009 20:58:06 -0600 |
parents | 0d4613a736e9 |
children | e6441e13acb2 |
comparison
equal
deleted
inserted
replaced
10018:fb8834c12035 | 10019:7ad32bf759c3 |
---|---|
22 | 22 |
23 */ | 23 */ |
24 | 24 |
25 %option prefix = "octave_" | 25 %option prefix = "octave_" |
26 | 26 |
27 %s COMMAND_START | 27 %top { |
28 %s MATRIX_START | |
29 | |
30 %x SCRIPT_FILE_BEGIN | |
31 %x FUNCTION_FILE_BEGIN | |
32 | |
33 %{ | |
34 #ifdef HAVE_CONFIG_H | 28 #ifdef HAVE_CONFIG_H |
35 #include <config.h> | 29 #include <config.h> |
36 #endif | 30 #endif |
31 } | |
32 | |
33 %s COMMAND_START | |
34 %s MATRIX_START | |
35 | |
36 %x SCRIPT_FILE_BEGIN | |
37 %x FUNCTION_FILE_BEGIN | |
38 | |
39 %{ | |
37 | 40 |
38 #include <cctype> | 41 #include <cctype> |
39 #include <cstring> | 42 #include <cstring> |
40 | 43 |
41 #include <iostream> | 44 #include <iostream> |