1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-04-10 19:20:44 +01:00

headers reformatting with GPL license informations

This commit is contained in:
Antonin Portelli 2014-02-06 18:52:13 +00:00
parent eaa89657ee
commit 1bbab23435
25 changed files with 534 additions and 59 deletions

View File

@ -1,3 +1,22 @@
/*
* CompiledFunction.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/CompiledFunction.hpp> #include <latan/CompiledFunction.hpp>
#include <latan/Math.hpp> #include <latan/Math.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,5 +1,24 @@
#ifndef LATAN_COMPILED_FUNCTION_HPP_ /*
#define LATAN_COMPILED_FUNCTION_HPP_ * CompiledFunction.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_CompiledFunction_hpp_
#define Latan_CompiledFunction_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <latan/Function.hpp> #include <latan/Function.hpp>
@ -8,7 +27,7 @@
#include <vector> #include <vector>
#include <cstdarg> #include <cstdarg>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
/****************************************************************************** /******************************************************************************
* Compiled double function class * * Compiled double function class *
@ -34,6 +53,6 @@ private:
RunContext context_; RunContext context_;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_CompiledFunction_hpp_

View File

@ -1,3 +1,22 @@
/*
* Exceptions.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Exceptions.hpp> #include <latan/Exceptions.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,5 +1,24 @@
#ifndef LATAN_EXCEPTIONS_HPP_ /*
#define LATAN_EXCEPTIONS_HPP_ * Exceptions.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Exceptions_hpp_
#define Latan_Exceptions_hpp_
#include <stdexcept> #include <stdexcept>
#ifndef LATAN_GLOBAL_HPP_ #ifndef LATAN_GLOBAL_HPP_
@ -17,7 +36,7 @@ public:\
explicit name(std::string msg, std::string loc);\ explicit name(std::string msg, std::string loc);\
} }
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
namespace Exceptions namespace Exceptions
{ {
@ -36,6 +55,6 @@ namespace Exceptions
DECL_EXC(Syntax, Runtime); DECL_EXC(Syntax, Runtime);
} }
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_Exceptions_hpp_

View File

@ -1,3 +1,22 @@
/*
* Function.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Function.hpp> #include <latan/Function.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,12 +1,31 @@
#ifndef LATAN_FUNCTION_HPP_ /*
#define LATAN_FUNCTION_HPP_ * Function.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Function_hpp_
#define Latan_Function_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <stack> #include <stack>
#include <vector> #include <vector>
#include <cstdarg> #include <cstdarg>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
/****************************************************************************** /******************************************************************************
* Base function class * * Base function class *
@ -40,6 +59,6 @@ private:
std::vector<double> buffer_; std::vector<double> buffer_;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_Function_hpp_

View File

@ -1,3 +1,22 @@
/*
* Global.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,12 +1,31 @@
#ifndef LATAN_GLOBAL_HPP_ /*
#define LATAN_GLOBAL_HPP_ * Global.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Global_hpp_
#define Latan_Global_hpp_
#include <map> #include <map>
#include <string> #include <string>
#include <latan/Eigen/Dense> #include <latan/Eigen/Dense>
#define LATAN_BEGIN_CPPDECL namespace Latan { #define BEGIN_NAMESPACE namespace Latan {
#define LATAN_END_CPPDECL } #define END_NAMESPACE }
// attribute to switch off unused warnings with gcc // attribute to switch off unused warnings with gcc
#ifdef __GNUC__ #ifdef __GNUC__
@ -15,7 +34,7 @@
#define __dumb #define __dumb
#endif #endif
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
// Environment // Environment
namespace Env namespace Env
@ -54,8 +73,8 @@ bool keyExists(const K &key, const std::map<K, T> &map)
return (map.find(key) != map.end()); return (map.find(key) != map.end());
} }
LATAN_END_CPPDECL END_NAMESPACE
#include <latan/Exceptions.hpp> #include <latan/Exceptions.hpp>
#endif #endif // Latan_Global_hpp_

View File

@ -1,3 +1,22 @@
/*
* Io.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Io.hpp> #include <latan/Io.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,5 +1,24 @@
#ifndef LATAN_IO_HPP_ /*
#define LATAN_IO_HPP_ * Io.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Io_hpp_
#define Latan_Io_hpp_
#include <fstream> #include <fstream>
#include <map> #include <map>
@ -12,7 +31,7 @@
#include <latan/ParserState.hpp> #include <latan/ParserState.hpp>
#include <latan/Sample.hpp> #include <latan/Sample.hpp>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
/****************************************************************************** /******************************************************************************
* Generic datafile class * * Generic datafile class *
@ -136,6 +155,6 @@ private:
AsciiParserState* state_; AsciiParserState* state_;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif

View File

@ -1,3 +1,22 @@
/*
* IoAsciiLexer.lpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
%option reentrant %option reentrant
%option prefix="_ioAscii_" %option prefix="_ioAscii_"
%option bison-bridge %option bison-bridge

View File

@ -1,3 +1,22 @@
/*
* IoAsciiParser.ypp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
%{ %{
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>

View File

@ -1,9 +1,28 @@
#ifndef LATAN_IOOBJECT_HPP_ /*
#define LATAN_IOOBJECT_HPP_ * IoObject.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_IoObject_hpp_
#define Latan_IoObject_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
// Abstract base for IO objects // Abstract base for IO objects
class IoObject class IoObject
@ -24,6 +43,6 @@ public:
virtual unsigned int getType(void) const = 0; virtual unsigned int getType(void) const = 0;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_IoObject_hpp_

View File

@ -1,3 +1,22 @@
/*
* Mat.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Mat.hpp> #include <latan/Mat.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,11 +1,30 @@
#ifndef LATAN_MAT_HPP_ /*
#define LATAN_MAT_HPP_ * Mat.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Mat_hpp_
#define Latan_Mat_hpp_
#include <latan/Eigen/Dense> #include <latan/Eigen/Dense>
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <latan/IOObject.hpp> #include <latan/IOObject.hpp>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
// Eigen aliases // Eigen aliases
typedef Eigen::MatrixXd DMatBase; typedef Eigen::MatrixXd DMatBase;
@ -24,6 +43,6 @@ public:
virtual unsigned int getType(void) const; virtual unsigned int getType(void) const;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_Mat_hpp_

View File

@ -1,3 +1,22 @@
/*
* Math.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Math.hpp> #include <latan/Math.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,12 +1,31 @@
#ifndef LATAN_MATH_HPP_ /*
#define LATAN_MATH_HPP_ * Math.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Math_hpp_
#define Latan_Math_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <latan/Function.hpp> #include <latan/Function.hpp>
#include <latan/MathInterpreter.hpp> #include <latan/MathInterpreter.hpp>
#include <vector> #include <vector>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
/****************************************************************************** /******************************************************************************
* Standard C functions * * Standard C functions *
@ -68,6 +87,6 @@ namespace STDMATH_NAMESPACE
void addStdMathFunc(FunctionTable &fTable); void addStdMathFunc(FunctionTable &fTable);
} }
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_Math_hpp_

View File

@ -1,3 +1,22 @@
/*
* MathInterpreter.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/MathInterpreter.hpp> #include <latan/MathInterpreter.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,5 +1,24 @@
#ifndef LATAN_MATHCOMPILER_HPP_ /*
#define LATAN_MATHCOMPILER_HPP_ * MathInterpreter.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_MathInterpreter_hpp_
#define Latan_MathInterpreter_hpp_
#include <iostream> #include <iostream>
#include <map> #include <map>
@ -12,7 +31,7 @@
#define MAXIDLENGTH 256 #define MAXIDLENGTH 256
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
/****************************************************************************** /******************************************************************************
* Parser classes * * Parser classes *
@ -246,6 +265,6 @@ private:
unsigned int status_; unsigned int status_;
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_MathInterpreter_hpp_

View File

@ -1,3 +1,22 @@
/*
* MathLexer.lpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
%option reentrant %option reentrant
%option prefix="_math_" %option prefix="_math_"
%option bison-bridge %option bison-bridge

View File

@ -1,3 +1,22 @@
/*
* MathParser.ypp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
%{ %{
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>

View File

@ -1,11 +1,30 @@
#ifndef LATAN_SAMPLE_HPP_ /*
#define LATAN_SAMPLE_HPP_ * ParserState.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_ParserState_hpp_
#define Latan_ParserState_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
template <typename DataObj> template <typename DataObj>
class ParserState class ParserState
@ -41,6 +60,6 @@ template <typename DataObj>
ParserState<DataObj>::~ParserState(void) ParserState<DataObj>::~ParserState(void)
{} {}
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_ParserState_hpp_

View File

@ -1,3 +1,22 @@
/*
* Sample.cpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#include <latan/Sample.hpp> #include <latan/Sample.hpp>
#include <latan/includes.hpp> #include <latan/includes.hpp>

View File

@ -1,10 +1,29 @@
#ifndef LATAN_SAMPLE_HPP_ /*
#define LATAN_SAMPLE_HPP_ * Sample.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_Sample_hpp_
#define Latan_Sample_hpp_
#include <latan/Global.hpp> #include <latan/Global.hpp>
#include <latan/Mat.hpp> #include <latan/Mat.hpp>
LATAN_BEGIN_CPPDECL BEGIN_NAMESPACE
const int Central = -1; const int Central = -1;
@ -22,6 +41,6 @@ public:
DMat& operator()(const int s); DMat& operator()(const int s);
}; };
LATAN_END_CPPDECL END_NAMESPACE
#endif #endif // Latan_Sample_hpp_

View File

@ -1,5 +1,24 @@
#ifndef LATAN_INCLUDES_HPP_ /*
#define LATAN_INCLUDES_HPP_ * includes.hpp, part of LatAnalyze 3
*
* Copyright (C) 2013 - 2014 Antonin Portelli
*
* LatAnalyze 3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LatAnalyze 3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LatAnalyze 3. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef Latan_includes_hpp_
#define Latan_includes_hpp_
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
@ -9,4 +28,4 @@
#include <cstdarg> #include <cstdarg>
#include "../config.h" #include "../config.h"
#endif #endif // Latan_includes_hpp_