mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 22:45:32 +00:00
18 lines
326 B
C
18 lines
326 B
C
|
#include "aftypes.h"
|
||
|
#include <vector>
|
||
|
#include "afutils.h"
|
||
|
|
||
|
#ifndef PARSER
|
||
|
#define PARSER
|
||
|
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
|