Home
last modified time | relevance | path

Searched refs:tokenTypes (Results 1 – 20 of 20) sorted by relevance

/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/
Dtokenizer.py14 from .constants import tokenTypes, tagTokenTypes
69 yield {"type": tokenTypes["ParseError"], "data": self.stream.errors.pop(0)}
100 self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
106 self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
124 self.tokenQueue.append({"type": tokenTypes["ParseError"],
139 self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
170 self.tokenQueue.append({"type": tokenTypes["ParseError"],
198 self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
211 self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
223 self.tokenQueue.append({"type": tokenTypes[tokenType], "data": output})
[all …]
Dsanitizer.py8 from .constants import tokenTypes
184 if token_type in list(tokenTypes.keys()):
185 token_type = tokenTypes[token_type]
187 if token_type in (tokenTypes["StartTag"], tokenTypes["EndTag"],
188 tokenTypes["EmptyTag"]):
193 elif token_type == tokenTypes["Comment"]:
236 if token_type == tokenTypes["EndTag"]:
246 if token["type"] in list(tokenTypes.keys()):
249 token["type"] = tokenTypes["Characters"]
Dconstants.py3078 tokenTypes = { variable
3089 tagTokenTypes = frozenset([tokenTypes["StartTag"], tokenTypes["EndTag"],
3090 tokenTypes["EmptyTag"]])
Dhtml5parser.py18 from .constants import tokenTypes, ReparseException, namespaces
158 CharactersToken = tokenTypes["Characters"]
159 SpaceCharactersToken = tokenTypes["SpaceCharacters"]
160 StartTagToken = tokenTypes["StartTag"]
161 EndTagToken = tokenTypes["EndTag"]
162 CommentToken = tokenTypes["Comment"]
163 DoctypeToken = tokenTypes["Doctype"]
164 ParseErrorToken = tokenTypes["ParseError"]
265 if token["type"] == tokenTypes["StartTag"]:
426 constants.tokenTypes.items())
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DRandomPhrase.java69 protected static void randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule) { in randomPhrase() argument
104 tokenTypes.add( getTokenType(t0.label) ); in randomPhrase()
196 List<Integer> tokenTypes = new ArrayList<Integer>(100); in main() local
197 randomPhrase(parser, tokenTypes, startRule); in main()
198 System.out.println("token types="+tokenTypes); in main()
199 for (int i = 0; i < tokenTypes.size(); i++) { in main()
200 Integer ttypeI = (Integer) tokenTypes.get(i); in main()
/external/owasp/sanitizer/src/main/org/owasp/html/
DCssTokens.java77 private final TokenType[] tokenTypes; field in CssTokens
80 return new TokenIterator(tokenTypes.length); in start()
152 return tokenTypes[tokenIndex]; in type()
176 TokenType[] tokenTypes) { in CssTokens() argument
180 this.tokenTypes = tokenTypes; in CssTokens()
299 private List<TokenType> tokenTypes = null; field in CssTokens.Lexer
397 if (tokenTypes == null) { return EMPTY; } in build()
405 tokenTypes.remove(--tokenBreaksLimit); in build()
415 TokenType[] tokenTypesArr = tokenTypes.toArray(ZERO_TYPES); in build()
428 tokenTypes = new ArrayList<TokenType>(); in lex()
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Drecognizers.py800 def consumeUntil(self, input, tokenTypes): argument
808 if not isinstance(tokenTypes, (set, frozenset)):
809 tokenTypes = frozenset([tokenTypes])
812 while ttype != EOF and ttype not in tokenTypes:
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRCommonTokenStream.h67 - (NSArray *) tokensInRange:(NSRange)aRange withTypes:(NSArray *)tokenTypes;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRCommonTokenStream.h79 - (NSArray *) tokensInRange:(NSRange)aRange withTypes:(NSArray *)tokenTypes;
DANTLRCommonTokenStream.m268 - (NSArray *) tokensInRange:(NSRange)aRange withTypes:(NSArray *)tokenTypes
270 ANTLRBitSet *bits = [[ANTLRBitSet alloc] initWithArrayOfBits:tokenTypes];
DANTLRTreeWizard.m698 public void reverseIndex(Set tokenTypes) {
699 tokenTypesToReverseIndex = tokenTypes;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRCommonTokenStream.h67 - (NSArray *) tokensInRange:(NSRange)aRange withTypes:(NSArray *)tokenTypes;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRCommonTokenStream.h67 - (NSArray *) tokensInRange:(NSRange)aRange withTypes:(NSArray *)tokenTypes;
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreeWizard.cs691 public void reverseIndex( HashSet<int> tokenTypes ) in reverseIndex() argument
693 tokenTypesToReverseIndex = tokenTypes; in reverseIndex()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeWizard.cs614 public void reverseIndex( HashSet<int> tokenTypes ) in reverseIndex() argument
616 tokenTypesToReverseIndex = tokenTypes; in reverseIndex()
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/
Dtest_tokenizer.py30 types = dict((v, k) for k, v in constants.tokenTypes.items())
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg292 …<bitsets:{it | FOLLOW_<it.name>_in_<it.inName><it.tokenIndex> = frozenset([<it.tokenTypes:{it | <i…
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg247 <bitsets:{it | TOKENS_FOLLOWING_<it.name>_IN_<it.inName>_<it.tokenIndex> = Set[ <it.tokenTypes:{it …
/external/antlr/antlr-3.4/runtime/C/
DREADME587 See getNodeIndex(), reverseIndex(Set tokenTypes),
/external/antlr/antlr-3.4/tool/
DCHANGES.txt2157 See getNodeIndex(), reverseIndex(Set tokenTypes),