Groups
Sign in
Groups
antlr-discussion
Conversations
Labels
4_2
ALL(*)
ANLR4
ANTL4
ANTRLWorks
ATN
AWK
Backward
Bison
Book
C
C-plus-plus
C-plus-plus-11
CLASSPATH
CSharp
Cgrammar
Compatibility
DEFAULT_MODE
Delphi
EBNF
ECMAScript
EOF
Embarcadero
Excel
Exception
Fortran
GrammarAST
IE
JSON
JavaScript
LL1
Lua
MAP
Mingw
Multiple
NPE
Netbeans
Netbeans-Platform
Node
OpenEdge
Oracle
PATH
PLY
ParseTree
ParseTreePattern
Predicate
Python3
R
RPGLE
RuleContext
Scala
Scala-target
StackOverflow
TestRig
Umlauts
Unparser
V4
VB6
VMF-Text
VRL-Studio
VisualStudioExtensibility
XML
action
actionscript
aether
ambiguity
analysis
antlr
antlr2
antlr3
antlr4
antlr4ide
antlride
antlrv4
antlrworks-1
antlrworks2
as3
ast
attribute
autocomplete
babeljs
beginner
bug
build
c-sharp
c_ansi_cpp
c_preprocessor
calculator
callback
cfg
chapel
checkstyle
chess
clojure
collisions
comment
comments
community
compile
compiler
condition
constraints
context
control
count
cpp
cpp-target
deadlock
decoder
dependency
designing
doesnotwork
dot
dotnet
eclipse
efficiency
equals
error
error-handling
every
ex
example
examples
exit
expression
expressions
fail
failing
flex
float
floating
flow
function
get-rule
golang
google
gradle
grammar
grammer
graph
hashCode
highlighting
hoisting
html
iSeries
identifiers
importing
include
indent
infinite
installation
intellij
interface
isa
issue
java
java8
javascript
keywords
kotlin
kotlin-target
lambda
language-models
left-recursion
legal
lexer
line
linux
listener
llvm
lookahead
loop
machine
markdown
maven
metadata
metalanguage
mode
mono
multiplicity
namespace
newbie
nuget
occurences
order-of-rules
osx
packaging
parameters
parse
parser
parsing
pasrser
patterns
performance
pgn
php
platform
plsql
plugin
point
powerbuilder
precedence
precpred
prettyprinting
priority
protobuf
python
python-target
python2
qscintilla
range
reactive
recognition
recognizer
recursion
relational_algebra
render
requirejs
rewrite
ruby
rule
runtime
samples
sas
scanner
scientific
search-replace
semantic
semantic-action
setTokenBoundaries
skip
slow
solved
some
space
spark
sql
stack
statemachine
stringtemplate
syntactic
syntax
target
template
theory
timing
token
tokens
tool
toy
transformation
translator
tree
treegrammar
tsql
tutorial
unexpectedException
unicode
utf-8
vb6Parser
version
visitor
visualstudio2010
walker
whitespace
windows
xpath
xtext
About
Send feedback
Help
antlr-discussion
1–30 of 2144
Mark all as read
Report group
0 selected
Florin Iucha
, …
Eric Vergnaud
11
6/4/20
Need help speeding up lexing step
Removing the call to atStartOfInput() reduces the lexing duration by a factor of 20x for my language
unread,
C-plus-plus
antlr4
lexer
Need help speeding up lexing step
Removing the call to atStartOfInput() reduces the lexing duration by a factor of 20x for my language
6/4/20
Peter Petrov
, …
Mike Lischke
9
12/31/19
Whitespace problem with grammar
I can't say how much I thank you for this detailed investigation which you did for all the
unread,
antlr
grammar
javascript
lexer
listener
parse
rule
whitespace
Whitespace problem with grammar
I can't say how much I thank you for this detailed investigation which you did for all the
12/31/19
Vikram A S
, …
Mike Cargal
5
12/22/19
In antlr nested function using java how to accept dot and special characters
"testtt" and "0" look like they are intended to be strings (it would be quite the
unread,
ATN
RuleContext
antlr4
grammar
grammer
java
lexer
listener
maven
parser
recursion
rule
visitor
In antlr nested function using java how to accept dot and special characters
"testtt" and "0" look like they are intended to be strings (it would be quite the
12/22/19
SD
, …
Mike Cargal
9
12/9/19
no viable alternative at input
Yes Mike. fixed it. Thanks for your suggestions. On Monday, 9 December 2019 15:39:56 UTC-8, Mike
unread,
golang
lexer
no viable alternative at input
Yes Mike. fixed it. Thanks for your suggestions. On Monday, 9 December 2019 15:39:56 UTC-8, Mike
12/9/19
Marc Jacobi
, …
Mike Lischke
5
12/8/19
Q&A
Customize C++ Lexer to generate INDENT and DEDENT tokens
Is it possible to have the parser output its tree in the hierarchy of the encountered INDENTs? So
unread,
cpp-target
lexer
Q&A
Customize C++ Lexer to generate INDENT and DEDENT tokens
Is it possible to have the parser output its tree in the hierarchy of the encountered INDENTs? So
12/8/19
computertopics
11/9/19
using JFileChooser with antlr
I have a grammar file and I want to apply the grammar on any input file that I give but it is hard to
unread,
antlr
examples
grammar
lexer
parser
tutorial
using JFileChooser with antlr
I have a grammar file and I want to apply the grammar on any input file that I give but it is hard to
11/9/19
Exedys Digital
,
Martin Mirchev
2
10/3/20
Using ANTLR4 with LLVM? (specifically llvmlite, a python package)
Hi, I suggest using a visitor to walk the tree and generate IR. This will put most of the complexity
unread,
antlr4
compiler
issue
lexer
llvm
parser
python
Using ANTLR4 with LLVM? (specifically llvmlite, a python package)
Hi, I suggest using a visitor to walk the tree and generate IR. This will put most of the complexity
10/3/20
Jorge Troncoso
2
10/17/19
Q&A
Extraneous input error when using “lexer rule actions” and “lexer commands”
Copying the answer I received from @sharwell on GitHub. "Your ID rule is unpredicated, so it
unread,
lexer
Q&A
Extraneous input error when using “lexer rule actions” and “lexer commands”
Copying the answer I received from @sharwell on GitHub. "Your ID rule is unpredicated, so it
10/17/19
Michael Powell
,
Mike Lischke
6
3/25/19
Q&A
How to sort out proper comment lexer rules
On Monday, March 25, 2019 at 12:11:31 PM UTC-4, Mike Lischke wrote: I'm not sure what you mean.
unread,
comments
lexer
parser
protobuf
whitespace
Q&A
How to sort out proper comment lexer rules
On Monday, March 25, 2019 at 12:11:31 PM UTC-4, Mike Lischke wrote: I'm not sure what you mean.
3/25/19
Andres Solenzal
,
John B Brodie
3
3/21/19
Quoted and unquoted IDs doubt
Hi John, Thanks for your answer. Putting param at the bottom will not make any change because no
unread,
antlr4
grammar
lexer
tokens
unicode
Quoted and unquoted IDs doubt
Hi John, Thanks for your answer. Putting param at the bottom will not make any change because no
3/21/19
Sashka Sanakoev
,
Geoff Groos
2
3/7/19
Nongreedy Lexer rules
Perhaps unfortunately, the general strategy when you get in to these kinds of problems is to simplify
unread,
lexer
Nongreedy Lexer rules
Perhaps unfortunately, the general strategy when you get in to these kinds of problems is to simplify
3/7/19
Michael Powell
, …
Geoff Groos
7
3/7/19
How to avoid lexical keywords
On Thu, Mar 7, 2019 at 2:54 PM Geoff Groos <groo...@gmail.com> wrote: > > I think you
unread,
collisions
identifiers
keywords
lexer
How to avoid lexical keywords
On Thu, Mar 7, 2019 at 2:54 PM Geoff Groos <groo...@gmail.com> wrote: > > I think you
3/7/19
Alfonso Guerra
2/6/19
C++ target for Python3 grammar fails to parse correctly/equally to Java target
Greetings, Having some difficulty parsing a Python script with the generated C++ target, I tried to
unread,
C-plus-plus
Python3
lexer
runtime
C++ target for Python3 grammar fails to parse correctly/equally to Java target
Greetings, Having some difficulty parsing a Python script with the generated C++ target, I tried to
2/6/19
Marc Baumbach
, …
Ivan Kochurkin
4
7/30/18
Need pointers for optimizing ANTLR4 lexer/parser
Thanks for the info Ivan, that does pinpoint the problem, though the specific fix doesn't change
unread,
antlr4
lexer
parser
performance
Need pointers for optimizing ANTLR4 lexer/parser
Thanks for the info Ivan, that does pinpoint the problem, though the specific fix doesn't change
7/30/18
Jeffry Angtoni
,
Mike Cargal
3
7/13/18
Q&A
Need help about ANTLR4 grammar for parsing custom commit message.
Yes... I think it will need more effort if I use antlr for parsing the commit message. Now, I've
unread,
antlr4
grammar
lexer
parser
Q&A
Need help about ANTLR4 grammar for parsing custom commit message.
Yes... I think it will need more effort if I use antlr for parsing the commit message. Now, I've
7/13/18
Alex Spurling
6/19/18
Modify XML Lexer grammar to separate opening/closing tags from their contents
I am currently using the XML lexer grammar defined here: https://github.com/antlr/grammars-v4/blob/
unread,
antlr
lexer
Modify XML Lexer grammar to separate opening/closing tags from their contents
I am currently using the XML lexer grammar defined here: https://github.com/antlr/grammars-v4/blob/
6/19/18
Burak Emre Kabakcı
, …
Mike Lischke
7
5/8/18
Using Antlr for developing a template engine
That's not actually that easy. :) They change the dialect over time and maintaining multiple
unread,
example
lexer
parse
syntax
template
Using Antlr for developing a template engine
That's not actually that easy. :) They change the dialect over time and maintaining multiple
5/8/18
garym
3/31/18
antlr4 How to fix lexer mode implicit token error?
I have a token collision with some text and was thinking about using lexer modes to work around the
unread,
antlr4
error
lexer
mode
antlr4 How to fix lexer mode implicit token error?
I have a token collision with some text and was thinking about using lexer modes to work around the
3/31/18
Philipp Kraus
,
John B Brodie
4
3/26/18
Q&A
lexer rule not executed
Changing the order of my lexer rules (the LOFICVALUE comes first) solves the problem. Thank Am Montag
unread,
antlr4
grammar
lexer
order-of-rules
Q&A
lexer rule not executed
Changing the order of my lexer rules (the LOFICVALUE comes first) solves the problem. Thank Am Montag
3/26/18
Michael Steindorfer
, …
Mike Lischke
4
3/28/18
Q&A
Parsing Triple Quote Delimited Multi-Line Strings with Trailing Quotes?
Hi Michael, But: """ Additional double quotes before the closing token FAIL! "
unread,
antlr4
grammar
lexer
Q&A
Parsing Triple Quote Delimited Multi-Line Strings with Trailing Quotes?
Hi Michael, But: """ Additional double quotes before the closing token FAIL! "
3/28/18
Dan Welch
2
2/18/18
question about start and stop indices with unicode symbols
Hmm, I just checked this out with 4.6 and it seems like it does what I expected in that version.. For
unread,
antlr4
lexer
token
unicode
question about start and stop indices with unicode symbols
Hmm, I just checked this out with 4.6 and it seems like it does what I expected in that version.. For
2/18/18
alex;
1/16/18
Re: When to use parser rule and when lexer rule?
Hi. May be so: grammar MyTest; myTestFile: line+ EOF; line: Break Spaces? ((Word | NormalNumbers)
unread,
lexer
parser
rule
whitespace
Re: When to use parser rule and when lexer rule?
Hi. May be so: grammar MyTest; myTestFile: line+ EOF; line: Break Spaces? ((Word | NormalNumbers)
1/16/18
Jeff Saremi
12/19/17
Debugging Lexer
This is really a note for @parrt I am looking at the generated parser in C# so if the Java version
unread,
lexer
Debugging Lexer
This is really a note for @parrt I am looking at the generated parser in C# so if the Java version
12/19/17
F (erbridge)
,
Ivan Kochurkin
2
12/19/17
Q&A
How do I build the C# grammars for Go?
Rewrite Java code fragments to Go. On Tuesday, December 19, 2017 at 4:11:10 AM UTC+3, F (erbridge)
unread,
antlr
golang
grammar
lexer
Q&A
How do I build the C# grammars for Go?
Rewrite Java code fragments to Go. On Tuesday, December 19, 2017 at 4:11:10 AM UTC+3, F (erbridge)
12/19/17
Mark Baumann
,
Norman Dunbar
8
9/13/17
Ordering lexer rules in a grammar
Norm, Thanks so much for your great explanation! I'll take a look at the sample grammars on
unread,
grammar
lexer
Ordering lexer rules in a grammar
Norm, Thanks so much for your great explanation! I'll take a look at the sample grammars on
9/13/17
Niels Basjes
, …
Eric Vergnaud
7
7/19/17
Upgrading from 4.6 to 4.7 triggers stackoverflow in existing project.
Thought it could be interpreted as a repeat Le samedi 15 juillet 2017 05:55:14 UTC+8, Ivan Kochurkin
unread,
StackOverflow
antlr4
lexer
Upgrading from 4.6 to 4.7 triggers stackoverflow in existing project.
Thought it could be interpreted as a repeat Le samedi 15 juillet 2017 05:55:14 UTC+8, Ivan Kochurkin
7/19/17
Cristiana Araújo
, …
Eric Vergnaud
4
7/12/17
Q&A
Alternative not to use 'Default Mode' in antlr.
Hi, The use of actions in the grammar is discouraged in antlr4 in favor of listeners or visitors.
unread,
DEFAULT_MODE
antlr4
java
lexer
syntax
Q&A
Alternative not to use 'Default Mode' in antlr.
Hi, The use of actions in the grammar is discouraged in antlr4 in favor of listeners or visitors.
7/12/17
TR
,
Eric Vergnaud
2
2/13/17
ANTLR4 include implementation in the Lexer
Hi, to my knowledge, all languages like C, C++ etc... which support includes rely on a preprocessor.
unread,
antlr4
include
lexer
ANTLR4 include implementation in the Lexer
Hi, to my knowledge, all languages like C, C++ etc... which support includes rely on a preprocessor.
2/13/17
Immanuel Stephen
, …
Mike Cargal
6
2/2/17
Mismatched input error
Also see this question in Stackoverflow. http://stackoverflow.com/questions/41592639/antlr-mismatched
unread,
antlr4
lexer
Mismatched input error
Also see this question in Stackoverflow. http://stackoverflow.com/questions/41592639/antlr-mismatched
2/2/17
ashish...@gmail.com
,
Mike Lischke
6
12/21/16
antlr4 vs handwritten parser : golang
Mike, i really appreciate your help here. and thanks for clarifying about global datastructures. Just
unread,
antlr4
golang
lexer
performance
slow
antlr4 vs handwritten parser : golang
Mike, i really appreciate your help here. and thanks for clarifying about global datastructures. Just
12/21/16