21#if !defined(osmscout_ost_PARSER_H)
22#define osmscout_ost_PARSER_H
63 void SynErr(
int line,
int col,
int n);
64 void Error(
int line,
int col,
const char *s);
65 void Warning(
int line,
int col,
const char *s);
89 void ExpectWeak(
int n,
int follow);
90 bool WeakSeparator(
int n,
int syFol,
int repFol);
105 std::string result(str);
107 if (result.length()>=2 &&
109 result[result.length()-1]==
'"') {
110 result=result.substr(1,result.length()-2);
119 const std::string& filename,
Definition TypeFeature.h:99
Type
Definition Parser.h:43
@ Symbol
Definition Parser.h:44
@ Error
Definition Parser.h:45
@ Warning
Definition Parser.h:46
@ Exception
Definition Parser.h:47
Type type
Definition Parser.h:51
int column
Definition Parser.h:53
int line
Definition Parser.h:52
std::string text
Definition Parser.h:54
void Warning(int line, int col, const char *s)
bool hasErrors
Definition Parser.h:59
std::list< Err > errors
Definition Parser.h:58
void SynErr(int line, int col, int n)
void Exception(const char *s)
void Warning(const char *s)
void Error(int line, int col, const char *s)
void SemErr(const char *msg)
void TAGBOOLCOND(TagConditionRef &condition)
Errors * errors
Definition Parser.h:101
void TAGLESSEQUALCOND(const std::string &tagName, TagConditionRef &condition)
void TAGISINCOND(const std::string &tagName, TagConditionRef &condition)
void TAGLESSCOND(const std::string &tagName, TagConditionRef &condition)
void FEATUREDESCS(Feature &feature)
void SPECIALTYPE(TypeInfo &typeInfo)
void STRING(std::string &value)
void TYPEDESCS(TypeInfo &typeInfo)
void TAGBINCOND(TagConditionRef &condition)
std::string Destring(const char *str)
Definition Parser.h:103
void TYPEOPTIONS(TypeInfo &typeInfo)
void TAGEXISTSCOND(TagConditionRef &condition)
Parser(Scanner *scanner, const std::string &filename, TypeConfig &config)
void GROUPS(TypeInfo &typeInfo)
void TYPEFEATURE(TypeInfo &typeInfo)
void PATH(TypeInfo &typeInfo)
void TAGANDCOND(TagConditionRef &condition)
void TAGNOTEQUALSCOND(const std::string &tagName, TagConditionRef &condition)
void TYPEKIND(unsigned char &types)
void TAGGREATEREQUALCOND(const std::string &tagName, TagConditionRef &condition)
void UINT8(uint8_t &value)
void TYPEOPTION(TypeInfo &typeInfo)
void TAGEQUALSCOND(const std::string &tagName, TagConditionRef &condition)
void TYPEKINDS(unsigned char &types)
void LANES(TypeInfo &typeInfo)
void TAGGREATERCOND(const std::string &tagName, TagConditionRef &condition)
void TAGCONDITION(TagConditionRef &condition)
void IDENT(std::string &value)
std::shared_ptr< TagCondition > TagConditionRef
Definition Tag.h:68
std::shared_ptr< Token > TokenRef
Definition Scanner.h:43