mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
8 lines
155 B
Swift
8 lines
155 B
Swift
// REQUIRES: syntax_parser_lib
|
|
// RUN: %swift-syntax-parser-test %s -dump-tree > %t.result
|
|
// RUN: diff -u %s.result %t.result
|
|
|
|
func test() {
|
|
"a\(b)c"
|
|
}
|