X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=sidebyside;f=ginac%2Finput_lexer.ll;h=46df9595bd16d0f7efd259fd08cc9bd4bea93b92;hb=a4294a62590d45ad81e66ce59101982dc83dba51;hp=34cba11f045fe7921e9122be3e93f7d8ee83ee0a;hpb=3ab9a310275c0289ec5ae6deaf3b970aca6904e9;p=ginac.git diff --git a/ginac/input_lexer.ll b/ginac/input_lexer.ll index 34cba11f..46df9595 100644 --- a/ginac/input_lexer.ll +++ b/ginac/input_lexer.ll @@ -39,16 +39,12 @@ #include "numeric.h" #include "symbol.h" -#ifndef NO_NAMESPACE_GINAC using namespace GiNaC; namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC #include "input_parser.h" -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC // Table of all used symbols struct sym_def { @@ -105,10 +101,6 @@ Digits ginac_yylval = (long)Digits; return T_DIGITS; "<=" return T_LESSEQ; ">=" return T_GREATEREQ; - /* matrix delimiters */ -\[\[ return T_MATRIX_BEGIN; -\]\] return T_MATRIX_END; - /* numbers */ {D}+ | "#"{D}+"R"{AN}+ | @@ -164,9 +156,7 @@ int ginac_yywrap() return 1; } -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC // Set the input string void set_lexer_string(const std::string &s) @@ -197,6 +187,4 @@ bool is_lexer_symbol_predefined(const ex &s) return (*i).second.predefined; } -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC