Skip to content
Snippets Groups Projects
Select Git revision
  • ba333baaba9bc88f9c2e92e7aa3591458f7f1e43
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

test_DoWhileProcessor.cpp

Blame
  • PugsParser.cpp 53.66 KiB
    #include <PugsOStream.hpp>
    #include <PugsParser.hpp>
    
    #include <PugsAssert.hpp>
    
    #include <fstream>
    #include <unordered_map>
    #include <variant>
    
    #include <rang.hpp>
    
    #include <pegtl.hpp>
    #include <pegtl/analyze.hpp>
    #include <pegtl/contrib/parse_tree.hpp>
    #include <pegtl/contrib/parse_tree_to_dot.hpp>
    
    using namespace TAO_PEGTL_NAMESPACE;
    
    namespace language
    {
    // clang-format off
    
    struct slashslash : TAO_PEGTL_STRING("//") {};
    struct slashstar  : TAO_PEGTL_STRING("/*") {};
    struct starslash  : TAO_PEGTL_STRING("*/") {};
    
    struct comment
        : sor< if_must< slashslash, until< eolf > >,
               try_catch< slashstar, until< starslash> >,
               // error management
               if_must<at<slashstar>,raise<slashstar>, until< eof> > > {};
    
    struct ignored : star< sor< space, comment>  >{};
    
    struct integer
        : seq< opt< one< '+', '-' > >, plus< digit > >{};
    struct INTEGER : seq< integer, ignored >{};
    
    struct real
        : seq< opt< one< '+',
                         '-' >
                    >,
               sor< seq<
                      plus< digit >,
                      one < '.' >,
                      star< digit >
                      >,
                    seq<
                      one < '.' >,
                      plus< digit >
                      >
                    >,
               opt<
                 seq<
                   one< 'E',
                        'e' >,
                   opt< one< '+',
                             '-' >
                        >,
                   plus<digit>
                   >
                 >
               >{};
    
    struct semicol : one< ';' >{};
    
    struct REAL : seq< real, ignored >{};
    
    struct B_set : TAO_PEGTL_KEYWORD("B") {};
    struct R_set :TAO_PEGTL_KEYWORD("R") {};