antlr-runtime-sys 0.2.0

antlr-runtime library.
Documentation
#include <iostream>

#include <antlr4-runtime.h>
#include "LuceneLexer.h"
#include "LuceneParser.h"

using namespace lucene;
using namespace antlr4;

int main(int , const char **) {
  ANTLRInputStream input(u8"๐Ÿด = ๐Ÿ + \"๐Ÿ˜Ž\";(((x * ฯ€))) * ยต + โˆฐ; a + (x * (y ? 0 : 1) + z);");
  LuceneLexer lexer(&input);
  CommonTokenStream tokens(&lexer);

  tokens.fill();
  for (auto token : tokens.getTokens()) {
    std::cout << token->toString() << std::endl;
  }

  LuceneParser parser(&tokens);
  tree::ParseTree *tree = parser.topLevelQuery();

  std::cout << tree->toStringTree(&parser) << std::endl;

  return 0;
}