2018-11-07 23:06:41 +00:00
|
|
|
import os
|
|
|
|
import numpy
|
|
|
|
|
|
|
|
def get_functions(program):
|
2018-11-29 18:17:25 +00:00
|
|
|
return [x for x in program.split(' ') if x.startswith('@')]
|
|
|
|
|
|
|
|
def get_devices(program):
|
|
|
|
return [x.rsplit('.', 1)[0] for x in program.split(' ') if x.startswith('@')]
|