#include "fml_parser.h"
#include <ctype.h>
#include <string>
#include "base.h"
#include "utils.h"
namespace chrome_lang_id {
namespace {
inline bool IsValidCharAtStartOfIdentifier(char c) { … }
inline bool IsValidCharInsideIdentifier(char c) { … }
inline bool IsValidCharAtStartOfNumber(char c) { … }
inline bool IsValidCharInsideNumber(char c) { … }
}
FMLParser::FMLParser() { … }
FMLParser::~FMLParser() { … }
void FMLParser::Initialize(const string &source) { … }
void FMLParser::Next() { … }
void FMLParser::NextItem() { … }
void FMLParser::Parse(const string &source,
FeatureExtractorDescriptor *result) { … }
void FMLParser::ParseFeature(FeatureFunctionDescriptor *result) { … }
void FMLParser::ParseParameter(FeatureFunctionDescriptor *result) { … }
void ToFMLFunction(const FeatureFunctionDescriptor &function, string *output) { … }
void ToFML(const FeatureFunctionDescriptor &function, string *output) { … }
void ToFML(const FeatureExtractorDescriptor &extractor, string *output) { … }
string AsFML(const FeatureFunctionDescriptor &function) { … }
string AsFML(const FeatureExtractorDescriptor &extractor) { … }
void StripFML(string *fml_string) { … }
}