Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
fileparser Namespace Reference

Classes

class  CParser
 
class  Parser
 

Functions

 CreateParser (filepath)
 

Detailed Description

Copyright 2011 Google Inc.

Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.

Function Documentation

◆ CreateParser()

fileparser.CreateParser (   filepath)
Returns a Parser as appropriate for the file at this filepath.

Definition at line 11 of file fileparser.py.

11def CreateParser(filepath):
12 """Returns a Parser as appropriate for the file at this filepath.
13 """
14 if (filepath.endswith('.cpp') or
15 filepath.endswith('.h') or
16 filepath.endswith('.c')):
17 return CParser()
18 else:
19 return None
20
21