From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: A possible way for CC Mode to resolve its sluggishness Date: Sat, 27 Apr 2019 05:34:20 +0200 Message-ID: <87pnp8yvcz.fsf@telefonica.net> References: <20190426193056.GC4720@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153821"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 27 05:35:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKE7E-000dvh-NI for ged-emacs-devel@m.gmane.org; Sat, 27 Apr 2019 05:35:04 +0200 Original-Received: from localhost ([127.0.0.1]:54983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKE7D-0004kq-Nt for ged-emacs-devel@m.gmane.org; Fri, 26 Apr 2019 23:35:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKE6h-0004kg-5b for emacs-devel@gnu.org; Fri, 26 Apr 2019 23:34:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKE6e-0003Xv-Iu for emacs-devel@gnu.org; Fri, 26 Apr 2019 23:34:30 -0400 Original-Received: from [195.159.176.226] (port=51262 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKE6e-0003Wb-00 for emacs-devel@gnu.org; Fri, 26 Apr 2019 23:34:28 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hKE6c-000dFs-9X for emacs-devel@gnu.org; Sat, 27 Apr 2019 05:34:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:GTNlIpyDymmRagmaG4ue4NbJEKQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235978 Archived-At: Stefan Monnier writes: > Maybe if we want to speed things up, we should consider a new parsing > engine (instead of parse-partial-sexp and syntax-tables) based maybe on > a DFA for the tokenizer and GLR parser on top. That might arguably be > more generally useful and easier to use (in the sense that one can more > or less follow the language spec when implementing the major mode). No parser will provide the information that cc-mode needs to properly indent and colorize C++ code. Only a C++ front-end, which performs semantic analysis, knows that information.