mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Instead of creating syntax nodes directly, modify the parser to invoke an abstract interface 'SyntaxParseActions' while it is parsing the source code. This decouples the act of parsing from the act of forming a syntax tree representation. 'SyntaxTreeCreator' is an implementation of SyntaxParseActions that handles the logic of creating a syntax tree. To enforce the layering separation of parsing and syntax tree creation, a static library swiftSyntaxParse is introduced to compose the two. This decoupling is important for introducing a syntax parser library for SwiftSyntax to directly access parsing.
15 lines
320 B
CMake
15 lines
320 B
CMake
add_subdirectory(Runtime)
|
|
|
|
if(SWIFT_BUILD_REMOTE_MIRROR)
|
|
add_subdirectory(SwiftRemoteMirror)
|
|
endif()
|
|
|
|
if(SWIFT_INCLUDE_TOOLS)
|
|
configure_file(Config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Config.h
|
|
ESCAPE_QUOTES @ONLY)
|
|
add_subdirectory(Option)
|
|
add_subdirectory(Parse)
|
|
add_subdirectory(Syntax)
|
|
endif()
|
|
|