Home
last modified time | relevance | path

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

12

/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.cc532 Parser parser(StringPiece(mk->buf()), in Parse() local
535 parser.Parse(); in Parse()
540 Parser parser(buf, loc, out_stmts); in Parse() local
541 parser.Parse(); in Parse()
546 Parser parser(buf, loc, out_stmts); in ParseNotAfterRule() local
547 parser.set_state(ParserState::NOT_AFTER_RULE); in ParseNotAfterRule()
548 parser.Parse(); in ParseNotAfterRule()
DINTERNALS.md111 The statement parser is defined in *parser.cc*. In kati, there are four kinds of
132 ### Context dependent parser
159 sometimes kati's parser cannot tell the statement type of a line. In this case,
160 kati's parser speculatively creates a command statement object, keeping the
162 the evaluator re-runs the parser.
197 *$(X)*. Types of expressions and their parser are defined in *expr.cc*. Like
211 implement a parser which allows such expressions. It seems GNU make
242 parser. This will be discussed in the next section.
285 only dependencies, but they don't complicate the rule parser.
287 A feature which complicates the parser is semicolon. You can write the first
DAndroid.bp33 "parser.cc",
DMakefile.ckati41 parser.cc \
/build/blueprint/
DBlueprints4 "blueprint-parser",
32 name = "blueprint-parser",
33 pkgPath = "github.com/google/blueprint/parser",
35 "parser/modify.go",
36 "parser/parser.go",
37 "parser/printer.go",
38 "parser/sort.go",
41 "parser/parser_test.go",
42 "parser/printer_test.go",
122 deps = ["blueprint-parser"],
[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,
278 func unpackBool(boolValue reflect.Value, property *parser.Property) []error {
279 if property.Value.Type != parser.Bool {
282 property.Value.Pos, property.Value.Type, parser.Bool,
291 property *parser.Property) []error {
293 if property.Value.Type != parser.String {
[all …]
Dbuild.ninja.in71 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
74 …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 $
121 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
142 # Module: blueprint-parser
149 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
150 : g.bootstrap.compile ${g.bootstrap.srcDir}/parser/modify.go $
151 ${g.bootstrap.srcDir}/parser/parser.go $
[all …]
Dcontext.go471 scope *parser.Scope) (file *parser.File, subBlueprints []stringAndScope, deps []string,
479 scope = parser.NewScope(scope)
483 file, errs = parser.ParseAndEval(filename, r, scope)
486 if parseErr, ok := err.(*parser.ParseError); ok {
547 *parser.Scope
571 handler := func(file *parser.File) {
582 case *parser.Module:
584 case *parser.Assignment:
632 type FileHandler func(*parser.File)
653 fileCh := make(chan *parser.File)
[all …]
Dunpack_test.go365 file, errs := parser.Parse("", r, nil)
375 module := file.Defs[0].(*parser.Module)
/build/blueprint/bpmodify/
Dbpmodify.go73 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
90 res, err := parser.Print(file)
121 func findModules(file *parser.File) (modified bool, errs []error) {
124 if module, ok := def.(*parser.Module); ok {
126 if prop.Name.Name == "name" && prop.Value.Type == parser.String {
140 func processModule(module *parser.Module, moduleName string,
141 file *parser.File) (modified bool, errs []error) {
153 func processParameter(value *parser.Value, paramName, moduleName string,
154 file *parser.File) (modified bool, errs []error) {
155 if value.Type != parser.List {
[all …]
/build/soong/androidmk/parser/
Dparser.go1 package parser package
24 func (p *parser) Parse() ([]MakeThing, []error) {
42 type parser struct { struct
50 func NewParser(filename string, r io.Reader) *parser {
51 p := &parser{}
68 func (p *parser) errorf(format string, args ...interface{}) { argument
83 func (p *parser) accept(toks ...rune) bool { argument
95 func (p *parser) next() { argument
105 func (p *parser) parseLines() { argument
165 func (p *parser) parseDirective() bool { argument
[all …]
Dmake_strings_test.go1 package parser package
Dscope.go1 package parser package
Dmakething.go1 package parser package
/build/soong/
Dbuild.ninja.in91 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
94 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
122 …bootstrap/blueprint/test -L ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -L ${g.bootstr…
147 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
151 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
173 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
179 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
196 … ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $
200 …incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.…
222 # Module: blueprint-parser
[all …]
DAndroid.bp204 "androidmk-parser",
205 "blueprint-parser",
210 name: "androidmk-parser",
211 pkgPath: "android/soong/androidmk/parser",
213 "androidmk/parser/make_strings.go",
214 "androidmk/parser/makething.go",
215 "androidmk/parser/parser.go",
216 "androidmk/parser/scope.go",
219 "androidmk/parser/make_strings_test.go",
/build/blueprint/parser/
Dparser.go15 package parser package
46 func parse(p *parser) (file *File, errs []error) { argument
85 type parser struct { struct
94 func newParser(r io.Reader, scope *Scope) *parser {
95 p := &parser{}
107 func (p *parser) error(err error) { argument
122 func (p *parser) errorf(format string, args ...interface{}) { argument
126 func (p *parser) accept(toks ...rune) bool { argument
138 func (p *parser) next() { argument
150 func (p *parser) parseDefinitions() (defs []Definition) { argument
[all …]
Dmodify.go15 package parser package
Dprinter_test.go15 package parser package
/build/tools/releasetools/
Dtarget_files_diff.py220 parser = argparse.ArgumentParser()
221 parser.add_argument('dir1', help='The base target files package (extracted)')
222 parser.add_argument('dir2', help='The new target files package (extracted)')
223 parser.add_argument('--output',
225 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.go43 f, err := parser.ParseFile(token.NewFileSet(), src, nil, 0)
/build/blueprint/tests/
Dtest.sh104 touch ../parser/parser_test.go
/build/core/tasks/check_boot_jars/
Dpackage_whitelist.txt179 gov\.nist\.javax\.sip\.parser
180 gov\.nist\.javax\.sip\.parser\.extensions
181 gov\.nist\.javax\.sip\.parser\.ims

12