Lines Matching refs:mTokenizer
749 mMap(map), mTokenizer(tokenizer), mFormat(format), mState(STATE_TOP) { in Parser()
753 while (!mTokenizer->isEof()) { in parse()
755 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().c_str(), in parse()
756 mTokenizer->peekRemainderOfLine().c_str()); in parse()
759 mTokenizer->skipDelimiters(WHITESPACE); in parse()
761 if (!mTokenizer->isEol() && mTokenizer->peekChar() != '#') { in parse()
764 String8 keywordToken = mTokenizer->nextToken(WHITESPACE); in parse()
766 mTokenizer->skipDelimiters(WHITESPACE); in parse()
770 mTokenizer->skipDelimiters(WHITESPACE); in parse()
774 mTokenizer->skipDelimiters(WHITESPACE); in parse()
778 ALOGE("%s: Expected keyword, got '%s'.", mTokenizer->getLocation().c_str(), in parse()
792 mTokenizer->skipDelimiters(WHITESPACE); in parse()
793 if (!mTokenizer->isEol() && mTokenizer->peekChar() != '#') { in parse()
795 mTokenizer->getLocation().c_str(), mTokenizer->peekRemainderOfLine().c_str()); in parse()
800 mTokenizer->nextLine(); in parse()
805 mTokenizer->getLocation().c_str()); in parse()
811 mTokenizer->getLocation().c_str()); in parse()
818 mTokenizer->getLocation().c_str()); in parse()
825 mTokenizer->getLocation().c_str()); in parse()
835 ALOGE("%s: Duplicate keyboard 'type' declaration.", mTokenizer->getLocation().c_str()); in parseType()
840 String8 typeToken = mTokenizer->nextToken(WHITESPACE); in parseType()
857 ALOGE("%s: Expected keyboard type label, got '%s'.", mTokenizer->getLocation().c_str(), in parseType()
870 String8 keywordToken = mTokenizer->nextToken(WHITESPACE); in parseMap()
872 mTokenizer->skipDelimiters(WHITESPACE); in parseMap()
875 ALOGE("%s: Expected keyword after 'map', got '%s'.", mTokenizer->getLocation().c_str(), in parseMap()
881 String8 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
885 mTokenizer->skipDelimiters(WHITESPACE); in parseMapKey()
886 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
892 ALOGE("%s: Expected key %s number, got '%s'.", mTokenizer->getLocation().c_str(), in parseMapKey()
899 ALOGE("%s: Duplicate entry for key %s '%s'.", mTokenizer->getLocation().c_str(), in parseMapKey()
904 mTokenizer->skipDelimiters(WHITESPACE); in parseMapKey()
905 String8 keyCodeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
908 ALOGE("%s: Expected key code label, got '%s'.", mTokenizer->getLocation().c_str(), in parseMapKey()
922 String8 keyCodeToken = mTokenizer->nextToken(WHITESPACE); in parseKey()
925 ALOGE("%s: Expected key code label, got '%s'.", mTokenizer->getLocation().c_str(), in parseKey()
930 ALOGE("%s: Duplicate entry for key code '%s'.", mTokenizer->getLocation().c_str(), in parseKey()
935 mTokenizer->skipDelimiters(WHITESPACE); in parseKey()
936 String8 openBraceToken = mTokenizer->nextToken(WHITESPACE); in parseKey()
938 ALOGE("%s: Expected '{' after key code label, got '%s'.", mTokenizer->getLocation().c_str(), in parseKey()
952 String8 token = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parseKeyProperty()
971 mTokenizer->getLocation().c_str(), token.c_str()); in parseKeyProperty()
977 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
978 if (!mTokenizer->isEol()) { in parseKeyProperty()
979 char ch = mTokenizer->nextChar(); in parseKeyProperty()
983 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
984 token = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parseKeyProperty()
989 ALOGE("%s: Expected ',' or ':' after property name.", mTokenizer->getLocation().c_str()); in parseKeyProperty()
994 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1002 char ch = mTokenizer->peekChar(); in parseKeyProperty()
1007 ALOGE("%s: Invalid character literal for key.", mTokenizer->getLocation().c_str()); in parseKeyProperty()
1012 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1017 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1023 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1027 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1032 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1037 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1038 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1042 mTokenizer->getLocation().c_str(), token.c_str()); in parseKeyProperty()
1047 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1053 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1054 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1058 mTokenizer->getLocation().c_str(), token.c_str()); in parseKeyProperty()
1063 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1068 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1075 ALOGE("%s: Expected a key behavior after ':'.", mTokenizer->getLocation().c_str()); in parseKeyProperty()
1080 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1081 } while (!mTokenizer->isEol() && mTokenizer->peekChar() != '#'); in parseKeyProperty()
1088 ALOGE("%s: Duplicate label for key.", mTokenizer->getLocation().c_str()); in parseKeyProperty()
1098 ALOGE("%s: Duplicate number for key.", mTokenizer->getLocation().c_str()); in parseKeyProperty()
1110 mTokenizer->getLocation().c_str()); in parseKeyProperty()
1177 ALOGE("%s: Duplicate modifier combination '%s'.", mTokenizer->getLocation().c_str(), in parseModifier()
1195 char ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1200 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1203 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1217 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1240 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1246 if (mTokenizer->nextToken(WHITESPACE).empty()) { in parseCharacterLiteral()
1251 ALOGE("%s: Malformed character literal.", mTokenizer->getLocation().c_str()); in parseCharacterLiteral()