test spirit parser moved from classic to X3.

This commit is contained in:
2025-12-27 12:32:01 +01:00
parent 32d9970659
commit 33f9fd5845
11 changed files with 1072 additions and 1296 deletions

View File

@@ -5,12 +5,10 @@
Author: Andreas Suter
e-mail: andreas.suter@psi.ch
$Id$
***************************************************************************/
/***************************************************************************
* Copyright (C) 2007 by Andreas Suter *
* Copyright (C) 2007-2026 by Andreas Suter *
* andreas.suter@psi.c *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -35,7 +33,6 @@
#include <iostream>
#include <vector>
#include <string>
using namespace std;
#include "PFunctionGrammar.h"
#include "PFunction.h"
@@ -44,7 +41,7 @@ class PFunctionHandler
{
public:
PFunctionHandler(char *fln, bool debug);
PFunctionHandler(vector<string> lines);
PFunctionHandler(std::vector<std::string> lines);
virtual ~PFunctionHandler();
virtual bool IsValid() { return fValid; }
@@ -57,13 +54,13 @@ class PFunctionHandler
bool fDebug;
bool fValid;
string fFileName;
std::string fFileName;
vector<double> fParam;
vector<int> fMap;
vector<string> fLines;
std::vector<double> fParam;
std::vector<int> fMap;
std::vector<std::string> fLines;
vector<PFunction> fFuncs;
std::vector<PFunction> fFuncs;
virtual bool ReadFile();
virtual bool MapsAreValid();