.. _program_listing_file_src_main.cpp: Program Listing for File main.cpp ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/main.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include #include #include #include int main(int argc, char **argv) { const int maxArgCount = 1; const int failureCode = 1; const std::span args(argv, static_cast(argc)); if (argc != maxArgCount) { std::cerr << "Usage: " << args[0] << " " << std::endl; return failureCode; } const std::optional symbolInfo = da4cpp::parsing::parse_translation_unit(args[1]); return symbolInfo.has_value() ? 0 : failureCode; }