summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Lexer.h
diff options
context:
space:
mode:
authorJustyna Att Ilczuk <justyna.ilczuk@gmail.com>2012-11-04 13:18:26 +0100
committerJustyna Att Ilczuk <justyna.ilczuk@gmail.com>2012-11-04 13:18:26 +0100
commit924f957a7e05a838bf4053f6f95455069f776543 (patch)
treeb3c90e2ac37ce2f2fa654718c576756f8c11ed2f /Sencha-lang/Lexer.h
parente8018808e184818ccb1e99593d674d79ceaac2e6 (diff)
downloadsencha-lang-924f957a7e05a838bf4053f6f95455069f776543.tar.gz
sencha-lang-924f957a7e05a838bf4053f6f95455069f776543.tar.bz2
sencha-lang-924f957a7e05a838bf4053f6f95455069f776543.tar.xz
sencha-lang-924f957a7e05a838bf4053f6f95455069f776543.zip
Test framework - strongly modified by myself... some (actually little) tests.
Diffstat (limited to 'Sencha-lang/Lexer.h')
-rw-r--r--Sencha-lang/Lexer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Sencha-lang/Lexer.h b/Sencha-lang/Lexer.h
index c7e2906..9851093 100644
--- a/Sencha-lang/Lexer.h
+++ b/Sencha-lang/Lexer.h
@@ -24,12 +24,14 @@ class Lexer
pair<string, Token> parse_token(string line);
type_of_token guess_type(string value);
+ bool is_keyword(string value);
+ bool is_punctuation(char c);
+ bool is_operator(string value );
+
protected:
private:
- bool is_keyword(string value);
- bool is_punctuation(char c);
- bool is_operator(string value );
+
vector<string> keywords;
vector<char> punctuation;