mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 14:35:54 +00:00
20 lines
354 B
C++
Executable file
20 lines
354 B
C++
Executable file
#ifndef AFPARSER_H
|
|
#define AFPARSER_H
|
|
|
|
#include "aftypes.h"
|
|
#include <vector>
|
|
#include "afutils.h"
|
|
|
|
vector<AFPToken> af_parse( string code );
|
|
|
|
bool isDigitOrDot( char chr );
|
|
bool isValidIdSymbol( char chr );
|
|
|
|
vector<string> getValidOps();
|
|
vector<string> getKeywords();
|
|
|
|
bool isKeyword( string id );
|
|
bool isValidOp( string op );
|
|
|
|
#endif /* !AFPARSER_H */
|