This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Upgrade antlr to 4.10.1 to match packaged version on Ubuntu 24.04

Source: https://repo1.maven.org/maven2/org/antlr/antlr4/4.10.1/antlr4-4.10.1-complete.jar
Downloaded 2026-05-24.

oscillatory.net (May 24, 2026, 9:02 PM -0500) 3329ebcb 2f57ccb1

+6 -6
+1 -1
src/CMakeLists.txt
··· 57 57 58 58 # set variable pointing to the antlr tool that supports C++ 59 59 # this is not required if the jar file can be found under PATH environment 60 - set(ANTLR_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/antlr4_lib/antlr-4.9.3-complete.jar CACHE PATH "antlr4 generator JAR file") 60 + set(ANTLR_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/antlr4_lib/antlr-4.10.1-complete.jar CACHE PATH "antlr4 generator JAR file") 61 61 62 62 # add macros to generate ANTLR Cpp code from grammar 63 63 find_package(ANTLR REQUIRED)
+5 -5
src/ParseFasm.cpp
··· 199 199 200 200 /// Helper macro to convert a rule context into a string 201 201 /// For use inside FasmParserBaseVisitor 202 - #define GET(x) (context->x() ? visit(context->x()).as<std::string>() : "") 202 + #define GET(x) (context->x() ? std::any_cast<std::string>(visit(context->x())) : "") 203 203 204 204 /// FasmParserBaseVisitor is a visitor for the parse tree 205 205 /// generated by the ANTLR parser. ··· 218 218 virtual Any visitFasmFile( 219 219 FasmParser::FasmFileContext* context) override { 220 220 for (auto& line : context->fasmLine()) { 221 - std::string str = visit(line).as<std::string>(); 221 + std::string str = std::any_cast<std::string>(visit(line)); 222 222 if (!str.empty()) { 223 223 out << str; 224 224 if (hex_mode) ··· 285 285 TAG('\'', width), 286 286 std::stoi(context->INT()->getText())); 287 287 } 288 - data << visit(context->verilogDigits()) 289 - .as<std::string>(); 288 + data << std::any_cast<std::string>( 289 + visit(context->verilogDigits())); 290 290 } 291 291 return data.str(); 292 292 } ··· 439 439 FasmParser::AnnotationsContext* context) override { 440 440 std::ostringstream data; 441 441 for (auto& a : context->annotation()) { 442 - data << visit(a).as<std::string>(); 442 + data << std::any_cast<std::string>(visit(a)); 443 443 } 444 444 return withHeader(TAG('{', annotations), data.str()); 445 445 }
third_party/antlr4_lib/antlr-4.10.1-complete.jar

This is a binary file and will not be displayed.

third_party/antlr4_lib/antlr-4.9.3-complete.jar

This is a binary file and will not be displayed.