Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtaining plain directive without user symbols #71

Open
simoatze opened this issue Oct 12, 2019 · 2 comments
Open

Obtaining plain directive without user symbols #71

simoatze opened this issue Oct 12, 2019 · 2 comments
Assignees

Comments

@simoatze
Copy link

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

@yanyh15
Copy link
Member

yanyh15 commented Oct 16, 2019

Thank you for your interest.

It is pretty easy to do, because the way we process variables and expressions. I will be asking one of the developer to look into this. We just need a on/off flag for this feature.

Yonghong

@yanyh15
Copy link
Member

yanyh15 commented Oct 29, 2019

Create a new branch for the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants