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

Introduce C parser library #21762

Merged
merged 10 commits into from Jan 11, 2019

Conversation

Projects
None yet
3 participants
@akyrtzi
Copy link
Member

akyrtzi commented Jan 10, 2019

Add a shared library with a C API that provides access to the syntactic parser with callbacks for the inference of raw syntax nodes.
This is primarily intended to be used by SwiftSyntax to speed-up source code parsing for it.

akyrtzi added some commits Dec 27, 2018

[utils/incrparse] Introduce testWithParserLib() helper function
This is to allow swift-syntax to run its lit tests without needing to execute swift-syntax-test
for incremental reparsing.
Introduce C parser library
Add a shared library with a C API that provides access to the syntactic parser with callbacks for the inference of raw syntax nodes.
This is primarily intended to be used by SwiftSyntax to speed-up source code parsing for it.

@akyrtzi akyrtzi requested review from rintaro and nkcsgexi Jan 10, 2019

@apple apple deleted a comment from swift-ci Jan 10, 2019

@akyrtzi

This comment has been minimized.

Copy link
Member Author

akyrtzi commented Jan 10, 2019

@swift-ci test OS X platform

@apple apple deleted a comment from swift-ci Jan 10, 2019

akyrtzi added some commits Jan 10, 2019

[SyntaxParser] Remove leftover type declaration and adjust the *_EXPO…
…RTS macro name

Also fixup some doc-comments.
[CMake] Add 'parser-lib' install component and install the relevant f…
…iles

The files go into 'lib/swift' so that SwiftSyntax can import the library without needing custom search paths to be added to the swiftpm invocation.
@akyrtzi

This comment has been minimized.

Copy link
Member Author

akyrtzi commented Jan 10, 2019

@swift-ci build toolchain

[utils/build-script-impl] Pass header/lib paths to the syntax parser …
…library for the build-script invocation of SwiftSyntax

@apple apple deleted a comment from swift-ci Jan 11, 2019

@apple apple deleted a comment from swift-ci Jan 11, 2019

@akyrtzi

This comment has been minimized.

Copy link
Member Author

akyrtzi commented Jan 11, 2019

@swift-ci test OS X platform

@akyrtzi akyrtzi merged commit 9c04037 into apple:master Jan 11, 2019

4 checks passed

Swift Test Linux Platform 11599 tests run, 10459 skipped, 0 failed.
Details
Swift Test Linux Platform (smoke test)
Details
Swift Test OS X Platform 58205 tests run, 2478 skipped, 0 failed.
Details
Swift Test OS X Platform (smoke test)
Details

@akyrtzi akyrtzi deleted the akyrtzi:syntax-parser-clib branch Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment