mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 14:35:54 +00:00
18 lines
326 B
C++
Executable file
18 lines
326 B
C++
Executable file
#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
|