Skip to content

Obtaining plain directive without user symbols #71

@simoatze

Description

@simoatze

Hi guys,

first of all, this is a great tool!
I started playing with it and I was wondering if there a way to obtain the plain parsed directive without the symbols (e.g. variables, etc.)
I am not an expert on parsing, so it could be something not doable, but let me give you an example.
Let's say I parse this directive:

#pragma omp target data map ( tofrom : a[0:ARRAY_SIZE], num_teams) map ( to : b[0:ARRAY_SIZE])

I would like to obtain something generic like this:

#pragma omp target data map ( tofrom : ) map ( to : )

or even a format like the grammar specified in the spec:

#pragma omp target [clause[ [,] clause] ... ] new-line

Thanks a lot, and great work with the ompparser!
Simone

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions