]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_lexer.ll
added description of wildcards
[ginac.git] / ginsh / ginsh_lexer.ll
index ff585dab55a435f5305fc81e99f4603fa70a8d05..a8a2b10e15dc0f4da964eabdfb7fceafd6cda26b 100644 (file)
@@ -4,7 +4,7 @@
  *  This file must be processed with flex. */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -113,6 +113,9 @@ score                       return T_SCORE;
                                return T_SYMBOL;
                        }
 
+                       /* wildcards */
+\${D}+                 yylval = wild(atoi(yytext + 1)); return T_LITERAL;
+
                        /* everything else */
 .                      return *yytext;