X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginsh%2Fginsh_lexer.ll;h=932f80b4dcfb8f83e84c3c109f109246c15559b6;hb=c366645d84ba4cfdd5b98785a9c5e66e0aea3e62;hp=ff585dab55a435f5305fc81e99f4603fa70a8d05;hpb=2acf71f4ed17c31f59f0449efa6793cfeb28eb85;p=ginac.git diff --git a/ginsh/ginsh_lexer.ll b/ginsh/ginsh_lexer.ll index ff585dab..932f80b4 100644 --- a/ginsh/ginsh_lexer.ll +++ b/ginsh/ginsh_lexer.ll @@ -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 @@ -89,10 +89,6 @@ score return T_SCORE; \"\" return T_QUOTE2; \"\"\" return T_QUOTE3; - /* matrix delimiters */ -\[\[ return T_MATRIX_BEGIN; -\]\] return T_MATRIX_END; - /* numbers */ {D}+ | "#"{D}+"R"{AN}+ | @@ -113,6 +109,9 @@ score return T_SCORE; return T_SYMBOL; } + /* wildcards */ +\${D}+ yylval = wild(atoi(yytext + 1)); return T_LITERAL; + /* everything else */ . return *yytext;