OmniSciDB  2e3a973ef4
parse_ast.py
Go to the documentation of this file.
1 from __future__ import print_function
2 
3 import sys
4 import re
5 
6 if len(sys.argv) > 1:
7  with open(sys.argv[1], 'r') as f:
8  for line in f:
9  if 'FunctionDecl' in line and 'ExtensionFunctions' in line:
10  line = re.sub("-FunctionDecl.*line:[0-9]+:[0-9]+", "", line)
11  print(line)
12 else:
13  for line in sys.stdin:
14  if 'FunctionDecl' in line and 'ExtensionFunctions' in line:
15  line = re.sub("-FunctionDecl.*line:[0-9]+:[0-9]+", "", line)
16  print(line, end ='')
int open(const char *path, int flags, int mode)
Definition: omnisci_fs.cpp:64