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

Context clause not supported #16

Open
avelure opened this issue Apr 22, 2021 · 1 comment
Open

Context clause not supported #16

avelure opened this issue Apr 22, 2021 · 1 comment

Comments

@avelure
Copy link

avelure commented Apr 22, 2021

The following code fails to parse with VHDLParser block-stream context.vhd

library test_lib;
context test_lib.test_context;

With the output

================================================================================
                        pyVHDLParser - Test Application
================================================================================
[StartOfDocumentBlock]
[Library.StartBlock                                 'library '                                                     at (line:   1, col:  1) .. (line:   1, col:  8)]
[Library.LibraryNameBlock                           'test_lib'                                                     at (line:   1, col:  9) .. (line:   1, col: 17)]
[Library.EndBlock                                   ';'                                                            at (line:   1, col: 17) .. (line:   1, col: 17)]
[LinebreakBlock                                                                                                    at (line:   1, col: 18) .. (line:   1, col: 18)]
ERROR: Expected whitespace after context name (identifier).

From the context.py code it looks like only context declaration is implemented.

@Paebbels
Copy link
Owner

Paebbels commented May 8, 2021

Oh, you're right a missed a complete statement kind.

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

2 participants