Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 42) sorted by relevance

12

/build/soong/cc/
Dtest_gen_stub_libs.py154 parser = gsl.SymbolFileParser(input_file)
155 self.assertIsNone(parser.current_line)
157 self.assertEqual('foo', parser.next_line().strip())
158 self.assertEqual('foo', parser.current_line.strip())
160 self.assertEqual('bar', parser.next_line().strip())
161 self.assertEqual('bar', parser.current_line.strip())
163 self.assertEqual('qux', parser.next_line().strip())
164 self.assertEqual('qux', parser.current_line.strip())
166 self.assertEqual('', parser.next_line())
167 self.assertEqual('', parser.current_line)
[all …]
Dgen_stub_libs.py331 parser = argparse.ArgumentParser()
333 parser.add_argument('-v', '--verbose', action='count', default=0)
335 parser.add_argument(
338 parser.add_argument(
341 parser.add_argument(
344 parser.add_argument(
346 parser.add_argument(
349 parser.add_argument(
353 return parser.parse_args()
/build/soong/androidmk/
DAndroid.bp30 "androidmk-parser",
31 "blueprint-parser",
36 name: "androidmk-parser",
37 pkgPath: "android/soong/androidmk/parser",
39 "parser/ast.go",
40 "parser/make_strings.go",
41 "parser/parser.go",
42 "parser/scope.go",
45 "parser/make_strings_test.go",
/build/make/tools/
Dcheck_link_type.py33 parser = argparse.ArgumentParser(description='Check link types')
34 parser.add_argument('--makefile', help='Makefile defining module')
35 parser.add_argument('--module', help='The module being checked')
36 parser.add_argument('--type', help='The link type of module')
37 parser.add_argument('--allowed', help='Allow deps to use these types',
39 parser.add_argument('--warn', help='Warn if deps use these types',
41 parser.add_argument('deps', help='The dependencies to check',
43 return parser.parse_args()
Dgenerate-enforce-rro-android-manifest.py35 parser = argparse.ArgumentParser()
36 parser.add_argument(
39 parser.add_argument(
42 parser.add_argument(
45 return parser.parse_args()
Dcheckowners.py10 parser = argparse.ArgumentParser(description='Check OWNERS file syntax') variable
11 parser.add_argument('-v', '--verbose', dest='verbose',
14 parser.add_argument('-c', '--check_address', dest='check_address',
17 parser.add_argument(dest='owners', metavar='OWNERS', nargs='+',
19 args = parser.parse_args()
Dgenerate-notice-files.py194 parser = argparse.ArgumentParser()
195 parser.add_argument(
198 parser.add_argument(
201 parser.add_argument(
204 parser.add_argument(
207 parser.add_argument(
210 parser.add_argument(
213 parser.add_argument(
216 return parser.parse_args()
/build/blueprint/
DBlueprints4 "blueprint-parser",
34 name = "blueprint-parser",
35 pkgPath = "github.com/google/blueprint/parser",
37 "parser/ast.go",
38 "parser/modify.go",
39 "parser/parser.go",
40 "parser/printer.go",
41 "parser/sort.go",
44 "parser/parser_test.go",
45 "parser/printer_test.go",
[all …]
Dunpack.go28 property *parser.Property
32 func unpackProperties(propertyDefs []*parser.Property,
33 propertiesStructs ...interface{}) (map[string]*parser.Property, []error) {
62 result := make(map[string]*parser.Property)
81 func buildPropertyMap(namePrefix string, propertyDefs []*parser.Property,
295 func unpackBool(boolValue reflect.Value, property *parser.Property) []error {
296 b, ok := property.Value.Eval().(*parser.Bool)
308 property *parser.Property) []error {
310 s, ok := property.Value.Eval().(*parser.String)
321 func unpackSlice(sliceValue reflect.Value, property *parser.Property) []error {
[all …]
Dbuild.ninja.in69 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
73 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
95 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
101 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
117 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
122 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
143 # Module: blueprint-parser
150 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
151 : g.bootstrap.compile ${g.bootstrap.srcDir}/parser/ast.go $
152 ${g.bootstrap.srcDir}/parser/modify.go $
[all …]
Dunpack_test.go509 file, errs := parser.ParseAndEval("", r, parser.NewScope(nil))
520 module, ok := def.(*parser.Module)
Dcontext.go528 scope *parser.Scope) (file *parser.File, subBlueprints []stringAndScope, errs []error) {
535 scope = parser.NewScope(scope)
539 file, errs = parser.ParseAndEval(filename, r, scope)
542 if parseErr, ok := err.(*parser.ParseError); ok {
607 *parser.Scope
631 handler := func(file *parser.File) {
642 case *parser.Module:
644 case *parser.Assignment:
692 type FileHandler func(*parser.File)
713 fileCh := make(chan *parser.File)
[all …]
/build/kati/
Dparser.go48 type parser struct { struct
67 func newParser(rd io.Reader, filename string) *parser {
68 p := &parser{
76 func (p *parser) srcpos() srcpos { argument
83 func (p *parser) addStatement(stmt ast) { argument
93 func (p *parser) readLine() []byte { argument
126 func newAssignAST(p *parser, lhsBytes []byte, rhsBytes []byte, op string) (*assignAST, error) { argument
147 func (p *parser) handleDirective(line []byte, directives map[string]directiveFunc) bool { argument
156 func (p *parser) handleRuleOrAssign(line []byte) { argument
175 func (p *parser) handleAssign(line []byte) bool { argument
[all …]
Dparser.cc548 Parser parser(StringPiece(mk->buf()), in Parse() local
551 parser.Parse(); in Parse()
556 Parser parser(buf, loc, out_stmts); in Parse() local
557 parser.Parse(); in Parse()
562 Parser parser(buf, loc, out_stmts); in ParseNotAfterRule() local
563 parser.set_state(ParserState::NOT_AFTER_RULE); in ParseNotAfterRule()
564 parser.Parse(); in ParseNotAfterRule()
/build/blueprint/bpmodify/
Dbpmodify.go74 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
91 res, err := parser.Print(file)
122 func findModules(file *parser.File) (modified bool, errs []error) {
125 if module, ok := def.(*parser.Module); ok {
127 if prop.Name == "name" && prop.Value.Type() == parser.StringType {
128 if targetedModule(prop.Value.Eval().(*parser.String).Value) {
141 func processModule(module *parser.Module, moduleName string,
142 file *parser.File) (modified bool, errs []error) {
154 func processParameter(value parser.Expression, paramName, moduleName string,
155 file *parser.File) (modified bool, errs []error) {
[all …]
/build/soong/androidmk/parser/
Dparser.go1 package parser package
24 func (p *parser) Parse() ([]Node, []error) {
42 type parser struct { struct
51 func NewParser(filename string, r io.Reader) *parser {
52 p := &parser{}
70 func (p *parser) Unpack(pos Pos) scanner.Position { argument
81 func (p *parser) pos() Pos { argument
89 func (p *parser) errorf(format string, args ...interface{}) { argument
100 func (p *parser) accept(toks ...rune) bool { argument
112 func (p *parser) next() { argument
[all …]
/build/make/tools/fs_config/
Dtest_fs_config_generator.py78 parser = AIDHeaderParser(temp_file.name)
79 oem_ranges = parser.oem_ranges
80 aids = parser.aids
105 parser = AIDHeaderParser(temp_file.name)
106 oem_ranges = parser.oem_ranges
107 aids = parser.aids
228 parser = AIDHeaderParser(temp_file.name)
229 aids = parser.aids
263 parser = FSConfigFileParser([temp_file.name], [(5000, 5999)])
264 files = parser.files
[all …]
/build/blueprint/parser/
Dparser.go15 package parser package
62 func parse(p *parser) (file *File, errs []error) { argument
101 type parser struct { struct
110 func newParser(r io.Reader, scope *Scope) *parser {
111 p := &parser{}
123 func (p *parser) error(err error) { argument
138 func (p *parser) errorf(format string, args ...interface{}) { argument
142 func (p *parser) accept(toks ...rune) bool { argument
154 func (p *parser) next() { argument
174 func (p *parser) parseDefinitions() (defs []Definition) { argument
[all …]
Dmodify.go15 package parser package
/build/soong/
Dbuild.ninja.in91 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
95 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
124 …bootstrap/blueprint/test -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -L ${g.bootstr…
131 ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed $
153 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
157 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
180 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
186 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
203 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
208 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
[all …]
/build/blueprint/tests/test_tree/
Dbuild.ninja.in72 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
76 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
99 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
105 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
122 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
127 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
149 # Module: blueprint-parser
156 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
157 : g.bootstrap.compile ${g.bootstrap.srcDir}/blueprint/parser/ast.go $
158 ${g.bootstrap.srcDir}/blueprint/parser/modify.go $
[all …]
/build/make/tools/releasetools/
Dcheck_ota_package_signature.py148 parser = argparse.ArgumentParser()
149 parser.add_argument('certificate', help='The certificate to be used.')
150 parser.add_argument('package', help='The OTA package to be verified.')
151 args = parser.parse_args()
Dtarget_files_diff.py216 parser = argparse.ArgumentParser()
217 parser.add_argument('dir1', help='The base target files package (extracted)')
218 parser.add_argument('dir2', help='The new target files package (extracted)')
219 parser.add_argument('--output',
221 args = parser.parse_args()
/build/blueprint/bpfmt/
Dbpfmt.go61 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
70 parser.SortLists(file)
73 res, err := parser.Print(file)
/build/blueprint/gotestmain/
Dgotestmain.go44 f, err := parser.ParseFile(token.NewFileSet(), src, nil, 0)

12