]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_lexer.ll
- first implementation of pattern matching
[ginac.git] / ginsh / ginsh_lexer.ll
index 20cb329776d26d7dd92033f4a9bcaad12a8305bb..a8a2b10e15dc0f4da964eabdfb7fceafd6cda26b 100644 (file)
@@ -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;