[llvm-commits] CVS: llvm/tools/llvmc/ConfigLexer.l
Reid Spencer
reid at x10sys.com
Sun Aug 22 11:02:24 PDT 2004
Changes in directory llvm/tools/llvmc:
ConfigLexer.l updated: 1.4 -> 1.5
---
Log message:
Add support for version numbers.
Allow CRLF as a line terminator (as well as plain LF)
---
Diffs of the changes: (+5 -3)
Index: llvm/tools/llvmc/ConfigLexer.l
diff -u llvm/tools/llvmc/ConfigLexer.l:1.4 llvm/tools/llvmc/ConfigLexer.l:1.5
--- llvm/tools/llvmc/ConfigLexer.l:1.4 Fri Aug 20 17:53:11 2004
+++ llvm/tools/llvmc/ConfigLexer.l Sun Aug 22 13:02:13 2004
@@ -78,10 +78,10 @@
ASSEMBLER assembler|Assembler|ASSEMBLER
BadSubst \%[^iots][a-zA-Z]\%
COMMAND command|Command|COMMAND
-Comment \#[^\n]*\n
-NewLine \n
+Comment \#[^\r\n]*\r?\n
+NewLine \r?\n
Eq \=
-EscNewLine \\\n
+EscNewLine \\\r?\n
GROKS_DASH_O groks_dash_O|Groks_Dash_O|GROKS_DASH_O
LANG lang|Lang|LANG
LINKER linker|Linker|LINKER
@@ -102,6 +102,7 @@
String \"[^\"]*\"
TRANSLATES translates|Translates|TRANSLATES
TRANSLATOR translator|Translator|TRANSLATOR
+VERSION version|Version|VERSION
White [ \t]*
True true|True|TRUE
@@ -153,6 +154,7 @@
{OPT3} { return handleContext("opt3",OPT3); }
{OPT4} { return handleContext("opt4",OPT4); }
{OPT5} { return handleContext("opt5",OPT5); }
+{VERSION} { return handleContext("version",VERSION); }
%in% { return handleSubstitution(IN_SUBST); }
%out% { return handleSubstitution(OUT_SUBST); }
More information about the llvm-commits
mailing list