feat(parser): add platform-specific parsers and argument conventions

Implement platform-specific parsers for Windows, Linux, and macOS
Add GNU argument convention implementations
Create fake parser for testing purposes
Update CMakeLists to include new headers
This commit is contained in:
2025-10-03 23:56:54 +04:00
parent ef0a0c06f8
commit ebbf3983de
10 changed files with 190 additions and 23 deletions

27
include/argparse Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#ifndef ARGPARSE_HPP
#define ARGPARSE_HPP
#include <argument_parser.hpp>
#
#ifdef __linux__
#include <linux_parser.hpp>
namespace argument_parser {
using parser = linux_parser;
}
#elif __APPLE__
#include <macos_parser.hpp>
namespace argument_parser {
using parser = macos_parser;
}
#elif _WIN32
#include <windows_parser.hpp>
namespace argument_parser {
using parser = windows_parser;
}
#else
#error "Unsupported platform"
#endif
#endif
#include <base_convention.hpp>
#include <gnu_argument_convention.hpp>