Compare commits
No commits in common. "990c1d202ab55d554dfac0c5bbedaef812c12e00" and "bcdd3b192228276e6a456b2553ec910498124cbf" have entirely different histories.
990c1d202a
...
bcdd3b1922
|
@ -3,6 +3,3 @@
|
||||||
x64/*
|
x64/*
|
||||||
*/bin/*
|
*/bin/*
|
||||||
*/obj/*
|
*/obj/*
|
||||||
.fake
|
|
||||||
.DS_Store
|
|
||||||
bin/*
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Mac",
|
|
||||||
"defines": [],
|
|
||||||
"compilerPath": "/usr/bin/clang",
|
|
||||||
"cStandard": "c17",
|
|
||||||
"cppStandard": "c++17",
|
|
||||||
"intelliSenseMode": "macos-clang-x64",
|
|
||||||
"includePath": [
|
|
||||||
"/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mloc",
|
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**"
|
|
||||||
],
|
|
||||||
"defines": [],
|
|
||||||
"compilerPath": "/usr/bin/clang",
|
|
||||||
"cStandard": "c17",
|
|
||||||
"cppStandard": "c++17",
|
|
||||||
"intelliSenseMode": "macos-clang-x64"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
|
||||||
|
|
||||||
project(ArgsParser CXX)
|
|
||||||
|
|
||||||
set(CMAKE_PREFIX_PATH "~/Qt5.12.4/5.12.4/clang_64/lib/cmake")
|
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
||||||
|
|
||||||
add_library(ArgsParser argsparser.cpp)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
|
|
||||||
target_link_libraries(ArgsParser Qt5::Core)
|
|
|
@ -107,18 +107,10 @@ bool FloatOption::parse(const QList<QString> args) {
|
||||||
MatchMode::MatchMode(int mode_code, const QString& mode)
|
MatchMode::MatchMode(int mode_code, const QString& mode)
|
||||||
:_means_explain(mode), code_store(mode_code) { }
|
:_means_explain(mode), code_store(mode_code) { }
|
||||||
|
|
||||||
#include <QtCore/QByteArray>
|
/**
|
||||||
class inner_exception : public std::exception {
|
* @brief 获取模式代码
|
||||||
private:
|
* @return 模式代码
|
||||||
QByteArray _message;
|
*/
|
||||||
|
|
||||||
public:
|
|
||||||
inner_exception(const QString &msg)
|
|
||||||
:_message(msg.toUtf8()){}
|
|
||||||
virtual const char* what() const noexcept{
|
|
||||||
return _message.data();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
MatchMode& MatchMode::operator<<(std::shared_ptr<IArgvPack> unit) {
|
MatchMode& MatchMode::operator<<(std::shared_ptr<IArgvPack> unit) {
|
||||||
if(unit->paramType() == ParamType::FloatParam){
|
if(unit->paramType() == ParamType::FloatParam){
|
||||||
|
@ -127,7 +119,7 @@ MatchMode& MatchMode::operator<<(std::shared_ptr<IArgvPack> unit) {
|
||||||
if (u_exist->paramType() == ParamType::FloatParam) {
|
if (u_exist->paramType() == ParamType::FloatParam) {
|
||||||
auto u_cast = std::dynamic_pointer_cast<__FloatArgvImpls>(u_exist);
|
auto u_cast = std::dynamic_pointer_cast<__FloatArgvImpls>(u_exist);
|
||||||
if (u_cast->bindKey() == unit_in->bindKey())
|
if (u_cast->bindKey() == unit_in->bindKey())
|
||||||
throw new inner_exception("重复设置选项");
|
throw new std::exception("重复设置选项");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
|
||||||
|
|
||||||
project(WsNovelParser)
|
|
||||||
|
|
||||||
set(CMAKE_PREFIX_PATH "~/Qt5.12.4/5.12.4/clang_64/lib/cmake")
|
|
||||||
|
|
||||||
add_subdirectory(./ArgsParser)
|
|
||||||
add_library(libArgsParserIn SHARED IMPORTED)
|
|
||||||
target_include_directories(libArgsParserIn INTERFACE "${SOLUTION_DIR}/ArgsParser")
|
|
||||||
set_target_properties(libArgsParserIn PROPERTIES
|
|
||||||
IMPORTED_IMPLIB_DEBUG "${SOLUTION_DIR}/bin/lib/ArgsParser.0.lib"
|
|
||||||
IMPORTED_IMPLIB_RELEASE "${SOLUTION_DIR}/bin/lib/ArgsParser.1.lib"
|
|
||||||
)
|
|
||||||
|
|
||||||
add_subdirectory(./libWords)
|
|
||||||
|
|
||||||
|
|
||||||
add_executable(nsc
|
|
||||||
./WsNovelParser/main.cpp
|
|
||||||
./WsNovelParser/astprint.cpp
|
|
||||||
./WsNovelParser/novelparser.cpp
|
|
||||||
)
|
|
|
@ -1,24 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
|
||||||
|
|
||||||
project(libSyntax)
|
|
||||||
|
|
||||||
set(CMAKE_PREFIX_PATH "~/Qt5.12.4/5.12.4/clang_64/lib/cmake")
|
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
||||||
|
|
||||||
add_library(libSyntax
|
|
||||||
libsyntax.cpp
|
|
||||||
ast_basic.cpp
|
|
||||||
ast_gen.cpp
|
|
||||||
ast_novel.cpp
|
|
||||||
libtokens.cpp
|
|
||||||
syntax_novel.cpp
|
|
||||||
tokens_novel.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
target_link_libraries(libSyntax Qt5::Core)
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
|
||||||
|
|
||||||
project(libWords)
|
|
||||||
|
|
||||||
set(CMAKE_PREFIX_PATH "~/Qt5.12.4/5.12.4/clang_64/lib/cmake")
|
|
||||||
|
|
||||||
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
||||||
|
|
||||||
add_library(libWords libwords.cpp)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
|
|
||||||
target_link_libraries(libWords Qt5::Core)
|
|
Loading…
Reference in New Issue