npm install --save antlr4-autosuggest
// Load the lexer and parser modules generated by antlr4const lexerModule = ;const parserModule = ;// Create an autosuggester, providing it with the lexer and parser classesconst autosuggest = ;const autosuggester = autosuggest;// Suggest completions for the string "ABC"let suggestions = autosuggester;
How It Works
See explanation in the Java project.
- Clone the antlr-autosuggest-js repository.
- Install Node and NPM (tested with 8)
- Run the command
Written by Oran Epelbaum at Intigua. When starting to write this, studied the following blog posts (though much has changed since):