Skip to content

puszekjuliuszek/my_c_files_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_c_files_parser

how to use

run:

git clone https://github.com/puszekjuliuszek/my_c_files_parser

give path to your c file and thats all

the output of parser

.json file of structure:

'array_info': ('array_name', [height, width]),
'loop_bounds': ('iterator', start, end, jump)
'data_deps':   [operation, [[operation, [arguments]] ] ]

Example for test.c

{
'array_info': [('A', [4096, 4096])], 

'loop_bounds': [('i', 0, 4096, 1), ('j', 0, 8, 1), ('k', 0, 4096, 1)], 

'data_deps': [['Assignment', ['ArrayRef', ['ArrayRef', 'A', 'k'], 'i'], ['BinaryOp', ['BinaryOp', ['ArrayRef', ['ArrayRef', 'A', 'k'], 'i'], ['ArrayRef', ['ArrayRef', 'A', 'k'], ['BinaryOp', 'i', 5]]], 90]]]
}

license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published