GLR

We find that Tomita (GLR) parsing – more widely known in the field of Natural Language Processing is better suited than conventional approaches to the task of parsing C++. A Tomita parser generator requires no artificial modification of the grammar and emits a parser that processes actual C++ source code in nearlinear time and allows syntactic analysis to be separated from semantic analysis.

~

IRWIN, Warwick and CHURCHER, Neville, 2001. A generated parser of c++. NZ Journal of Computing. 2001. Vol. 8, no. 3, p. 26–37. pdf [Accessed 19 December 2023].