Home
last modified time | relevance | path

Searched +full:js +full:- +full:tokens (Results 1 – 25 of 542) sorted by relevance

12345678910>>...22

/external/jsmn/
Djsmn.h61 /* Not enough tokens were provided */
62 JSMN_ERROR_NOMEM = -1,
64 JSMN_ERROR_INVAL = -2,
66 JSMN_ERROR_PART = -3
96 * Create JSON parser over an array of tokens
101 * Run JSON parser. It parses a JSON data string into and array of tokens, each
105 JSMN_API int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len,
106 jsmntok_t *tokens, const unsigned int num_tokens);
112 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, in jsmn_alloc_token() argument
115 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
[all …]
DREADME.md4 [![Build Status](https://travis-ci.org/zserge/jsmn.svg?branch=master)](https://travis-ci.org/zserge…
7 easily integrated into resource-limited or embedded projects.
17 ----------
28 dependencies or non-standard C extensions). And of course, **simplicity** is a
29 key feature - simple code style, simple algorithm, simple integration into
33 --------
42 * incremental single-pass parsing
43 * library code is covered with unit-tests
46 ------
52 It holds the following tokens:
[all …]
/external/antlr/runtime/JavaScript/tests/functional/
Drhino-python.prog15 * out how to create a Java char array from JS. . .
25 eval(loadFile("../../lib/antlr3-all.js"));
26 eval(loadFile("../../lib/antlr3-cli.js"));
27 eval(loadFile("PythonLexer.js"));
28 eval(loadFile("PythonParser.js"));
29 eval(loadFile("rhino-python.extensions"));
58 var tokens = new ANTLR.runtime.CommonTokenStream(lexer);
59 tokens.discardOffChannelTokens=true;
60 var indentedSource = new PythonTokenSource(tokens);
61 tokens = new ANTLR.runtime.CommonTokenStream(indentedSource);
[all …]
Dt048rewrite.html1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht…
4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7 <!-- ANTLR includes -->
8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
9 <script type="text/javascript" src="t048rewrite.js"></script>
11 <!-- JsUnit include -->
12 <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
14 <!-- Test Code -->
35 var tokens = _parse("abc");
36 tokens.insertBefore(0,"0");
[all …]
Dt020fuzzy.html1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht…
4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7 <!-- ANTLR includes -->
8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
9 <script type="text/javascript" src="t020fuzzy.js"></script>
11 <!-- JsUnit include -->
12 <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
14 <!-- Test Code -->
25 " TokenStream tokens = new CommonTokenStream(lex);",
26 " tokens.toString();",
[all …]
Dt019lexer.html1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht…
4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7 <!-- ANTLR includes -->
8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
9 <script type="text/javascript" src="t019lexer.js"></script>
11 <!-- JsUnit include -->
12 <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
14 <!-- Test Code -->
25 " TokenStream tokens = new CommonTokenStream(lex);",
26 " tokens.toString();",
[all …]
Dt057autoAST.html1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht…
4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
7 <!-- ANTLR includes -->
8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
10 <script type="text/javascript" src="t057autoAST1Lexer.js"></script>
11 <script type="text/javascript" src="t057autoAST1Parser.js"></script>
12 <script type="text/javascript" src="t057autoAST2Lexer.js"></script>
13 <script type="text/javascript" src="t057autoAST2Parser.js"></script>
14 <script type="text/javascript" src="t057autoAST3Lexer.js"></script>
15 <script type="text/javascript" src="t057autoAST3Parser.js"></script>
[all …]
/external/jsmn/test/
Dtests.c22 check(parse("{\"a\":{},\"b\":{}}", 5, 5, JSMN_OBJECT, -1, -1, 2, JSMN_STRING, in test_object()
23 "a", 1, JSMN_OBJECT, -1, -1, 0, JSMN_STRING, "b", 1, JSMN_OBJECT, in test_object()
24 -1, -1, 0)); in test_object()
26 JSMN_OBJECT, -1, -1, 3, JSMN_STRING, "Day", 1, JSMN_PRIMITIVE, in test_object()
29 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, JSMN_OBJECT, -1, -1, 2, in test_object()
54 check(parse("[10]", 2, 2, JSMN_ARRAY, -1, -1, 1, JSMN_PRIMITIVE, "10")); in test_array()
62 check(parse("{\"boolVar\" : true }", 3, 3, JSMN_OBJECT, -1, -1, 1, in test_primitive()
64 check(parse("{\"boolVar\" : false }", 3, 3, JSMN_OBJECT, -1, -1, 1, in test_primitive()
66 check(parse("{\"nullVar\" : null }", 3, 3, JSMN_OBJECT, -1, -1, 1, in test_primitive()
68 check(parse("{\"intVar\" : 12}", 3, 3, JSMN_OBJECT, -1, -1, 1, JSMN_STRING, in test_primitive()
[all …]
/external/jsmn/example/
Djsondump.c9 * with one difference - it frees old memory pointer in case of realloc
12 * memory can't be re-allocated - use standard realloc() instead.
28 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) { in dump() argument
34 if (t->type == JSMN_PRIMITIVE) { in dump()
35 printf("%.*s", t->end - t->start, js + t->start); in dump()
37 } else if (t->type == JSMN_STRING) { in dump()
38 printf("'%.*s'", t->end - t->start, js + t->start); in dump()
40 } else if (t->type == JSMN_OBJECT) { in dump()
43 for (i = 0; i < t->size; i++) { in dump()
48 j += dump(js, key, count - j, indent + 1); in dump()
[all …]
/external/cronet/base/process/
Dprocess_metrics_linux.cc2 // Use of this source code is governed by a BSD-style license that can be
37 #include "third_party/abseil-cpp/absl/strings/ascii.h"
38 #include "third_party/abseil-cpp/absl/types/optional.h"
68 // on success or -1 on error.
74 return -1; in GetProcessCPU()
129 io_counters->OtherOperationCount = 0; in GetIOCounters()
130 io_counters->OtherTransferCount = 0; in GetIOCounters()
137 target_counter = &io_counters->ReadOperationCount; in GetIOCounters()
139 target_counter = &io_counters->WriteOperationCount; in GetIOCounters()
141 target_counter = &io_counters->ReadTransferCount; in GetIOCounters()
[all …]
/external/libchrome/base/process/
Dprocess_metrics_linux.cc2 // Use of this source code is governed by a BSD-style license that can be
101 // This can be reached if the process dies when proc is read -- in that case, in ReadProcStatusAndGetFieldAsSizeT()
134 // on success or -1 on error.
140 return -1; in GetProcessCPU()
152 // bind mount into /sys/kernel/debug and synchronously reading the in-memory
161 meminfo->gem_objects = -1; in ReadChromeOSGraphicsMemory()
162 meminfo->gem_size = -1; in ReadChromeOSGraphicsMemory()
164 int gem_objects = -1; in ReadChromeOSGraphicsMemory()
165 long long gem_size = -1; in ReadChromeOSGraphicsMemory()
169 meminfo->gem_objects = gem_objects; in ReadChromeOSGraphicsMemory()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dgenerate.py2 # Use of this source code is governed by a BSD-style license that can be
26 <!--
30 -->
35 // Use of this source code is governed by a BSD-style license that can be
46 * Use of this source code is governed by a BSD-style license that can be
49 /* WARNING: This file is auto-generated.
60 # This is for chromium-build-stats.appspot.com (ukai@)
63 # This is for chromium-build-stats-staging.appspot.com (ukai@)
67 # Add more tokens here if traces are served from other domains.
75 assert f.encoding == 'utf-8'
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DTokenRewriteStream.js5 * operations are done lazily--only if you convert the buffer to a
7 * all the time. As the buffer of tokens is converted to strings, the
13 * Since the operations are done lazily at toString-time, operations do not
15 * index i does not change the index values for tokens i+1..n-1.
25 * TokenRewriteStream tokens = new TokenRewriteStream(lex);
26 * T parser = new T(tokens);
34 * System.out.println(tokens.toString());
41 * useful for generating a C file and also its header file--all from the
44 * tokens.insertAfter("pass1", t, "text to put after t");}
45 * tokens.insertAfter("pass2", u, "text after u");}
[all …]
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py3 # Use of this source code is governed by a BSD-style license that can be
33 # Manually check for the command-line flag. (This isn't quite right, since it
34 # ignores, e.g., "--", but it's close enough.)
35 if "--use_bundled_pylibs" in sys.argv[1:]:
74 """Make a (human-readable) message listing a chain of imports. (Returned
94 RelativePath with first file found, or an arbitrary non-existent file
116 # to be very strong, cryptographically. It just needs to be non-trivial
122 # Take the first 4 bytes as a little-endian uint32.
154 # Support some very simple single-line comments in typemap JSON.
168 # Return the already-generated module.
[all …]
/external/flatbuffers/
Dyarn.lock5 "@babel/code-frame@7.12.11":
7 …resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db93…
8 …integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH…
12 "@babel/helper-validator-identifier@^7.16.7":
14 …solved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identif…
15 …integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/…
19 …resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea7…
20 …integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfT…
22 "@babel/helper-validator-identifier" "^7.16.7"
24 js-tokens "^4.0.0"
[all …]
/external/cronet/testing/libfuzzer/fuzzers/
Djavascript_parser_proto_fuzzer.cc2 // Use of this source code is governed by a BSD-style license that can be
11 #include "third_party/libprotobuf-mutator/src/src/libfuzzer/libfuzzer_macro.h"
24 for (const auto& token : source_protobuf.tokens()) { in protobuf_to_string()
30 // Explicitly specify some attributes to avoid issues with the linker dead-
77 v8::String::NewFromUtf8(isolate, "module.js", in DEFINE_BINARY_PROTO_FUZZER()
81 v8::ScriptOrigin origin(isolate, name, 0, 0, false, -1, in DEFINE_BINARY_PROTO_FUZZER()
/external/clang/lib/Format/
DUnwrappedLineParser.cpp1 //===--- UnwrappedLineParser.cpp - Format C++ code ------------------------===//
8 //===----------------------------------------------------------------------===//
12 /// which turns a stream of tokens into UnwrappedLines.
14 //===----------------------------------------------------------------------===//
21 #define DEBUG_TYPE "format-parser"
81 Token = PreviousTokenSource->getNextToken(); in getNextToken()
87 unsigned getPosition() override { return PreviousTokenSource->getPosition(); } in getPosition()
90 Token = PreviousTokenSource->setPosition(Position); in setPosition()
95 bool eof() { return Token && Token->HasUnescapedNewline; } in eof()
126 else if (!Parser.Line->Tokens.empty()) in ScopedLineState()
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/
Dtask.rb2 # encoding: utf-8
14 A rake task-generating utility concerning ANTLR grammar file
15 compilation. This is a general utility -- the grammars do
52 @name = options.fetch( :name, 'antlr-grammars' )
95 desc( "trash all ANTLR-generated source code" )
178 if test( ?d, output_directory ) and ( Dir.entries( output_directory ) - %w( . .. ) ).empty?
186 file = locate( "#{ vocab }.tokens" ) and return( file )
187 warn( Util.tidy( <<-END, true ) )
188 | unable to locate .tokens file `#{ vocab }' referenced in #{ grammar.path }
189 | -- ignoring dependency
[all …]
/external/skia/modules/canvaskit/npm_build/
Dpackage-lock.json2 "name": "canvaskit-wasm",
8 "name": "canvaskit-wasm",
10 "license": "BSD-3-Clause",
12 "@definitelytyped/header-parser": "0.0.121",
18 "node_modules/@definitelytyped/header-parser": {
20 …"resolved": "https://registry.npmjs.org/@definitelytyped/header-parser/-/header-parser-0.0.121.tgz…
21 …"integrity": "sha512-78HY1J+QiwZPXFZQWb9gPQPxAMNg6/1e4gl7gL/8dmd17vVWLi3AGrLJoG8Pn1p8d7MF2rlPw/2AE…
24 "@definitelytyped/typescript-versions": "^0.0.121",
29 "node_modules/@definitelytyped/typescript-versions": {
31 …ed": "https://registry.npmjs.org/@definitelytyped/typescript-versions/-/typescript-versions-0.0.12…
[all …]
/external/testng/doc/
Dprettify.js8 // <script type=text/javascript src=prettify.js></script>
91 * n tokens can be represented as a series n - 1 token ends, as long as
111 * @param style one of the token styles defined in designdoc-template, or null
187 var i = 0, j = s.length - 1;
189 while (j > i && PR_isSpaceChar(s.charAt(j))) { --j; }
199 suffix == s.substring(s.length - suffix.length, s.length);
230 var pos = -1;
238 pos = i - 1;
256 pos = -1;
291 start = i - 1;
[all …]
/external/google-cloud-java/owl-bot-postprocessor/synthtool/
DREADME.md7 [GAPIC]: https://github.com/googleapis/gapic-generator
25 python3 -m pip install -e .
37 git clone git@github.com:googleapis/python-tasks.git
38 cd python-tasks/
45 - e.g. the `synth.py` for the Cloud Tasks API for [Python][python_tasks_synth_py],
46 [Java][java_tasks_synth_py], [Node.js][node_tasks_synth_py], [PHP][php_tasks_synth_py],
52 python3 -m synthtool
56 - Investigate the changes it made
57 - Run the library tests
58 - Commit and push the changes to a branch and open a Pull Request
[all …]
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/resources/
Dprettify.js7 // http://www.apache.org/licenses/LICENSE-2.0
18 * some functions for browser-side pretty printing of code contained in html.
22 * <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html#langs">README</a>
27 * Smalltalk, Lisp-like, or CAML-like languages without an explicit lang class.
31 * {@code <script type="text/javascript" src="/path/to/prettify.js"></script>}
42 * language, as in {@code <pre class="prettyprint lang-java">}. Any class that
43 * starts with "lang-" followed by a file extension, specifies the file type.
44 * See the "lang-*.js" files in this directory for code that implements
45 * per-language file handlers.
177 /** A set of tokens that can precede a regular expression literal in
[all …]
/external/skia/experimental/tskit/
Dpackage-lock.json9 "license": "BSD-3-Clause",
11 "@typescript-eslint/eslint-plugin": "^4.21.0",
12 "@typescript-eslint/parser": "^4.21.0",
14 "eslint-config-airbnb-typescript": "^12.3.1",
15 "eslint-plugin-import": "^2.22.1",
19 "node_modules/@babel/code-frame": {
21 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz",
22 …"integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETG…
28 "node_modules/@babel/helper-validator-identifier": {
30 …solved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identif…
[all …]
/external/python/mako/mako/ext/
Dpygmentplugin.py2 # Copyright 2006-2023 the Mako authors and contributors <see AUTHORS file>
5 # the MIT License: http://www.opensource.org/licenses/mit-license.php
34 tokens = { variable in MakoLexer
77 # - don't consume
122 aliases = ["js+mako", "javascript+mako"]
137 cssclass="syntax-highlighted", linenos=True
/external/angle/third_party/spirv-tools/src/tools/sva/src/
Dparser.js7 // http://www.apache.org/licenses/LICENSE-2.0
15 import { TokenType } from "./token.js";
16 import * as AST from "./ast.js";
20 * @param {Hash} The SPIR-V grammar
22 * @return {AST} Attempts to build an AST from the tokens returned by the
172 // https://github.com/KhronosGroup/SPIRV-Tools/blob/master/source/text.cpp#L210

12345678910>>...22