From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Anand Tamariya <atamariya@gmail.com>
Newsgroups: gmane.emacs.devel
Subject: Re: Semantic font-lock for Java
Date: Wed, 29 Jan 2020 10:44:13 +0530
Message-ID: <CADm7Y4=_MDwLFimBNBdZJ7V08qJFA5+2fLgdTEA6O2PAGo3x3A@mail.gmail.com>
References: <CADm7Y4mgswK2UmTG8ivPZZNXV-WfJBUrBeMhoOLqran4ng_BTg@mail.gmail.com>
 <83eevsx1eh.fsf@gnu.org>
 <CADm7Y4=isYoz05oYk+J597WykFqfbtr7JcxELeYE2-Fq9n7aig@mail.gmail.com>
 <83wo9jtncf.fsf@gnu.org>
 <CADm7Y4kk14xxx1b7heTJYusC+Kqvqadr2c4DXQGEy_63bp-W2A@mail.gmail.com>
 <83iml1s3od.fsf@gnu.org>
 <CADm7Y4=OJraN_DFQtWF=3hsPWQi8+rLcvz4nO5sGQXzyDz6D9w@mail.gmail.com>
 <83k15grflg.fsf@gnu.org> <87tv4kyelp.fsf@randomsample>
 <83iml0r5fw.fsf@gnu.org> <87pnf8y4i8.fsf@randomsample>
 <CADm7Y4mqXxQBbFd=c+gGDpsrjQGgsmrHuhgq6Yc5vjNz2+epPw@mail.gmail.com>
 <878slr5wfu.fsf@randomsample>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000f1974c059d4069ba"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
	logging-data="47074"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
To: David Engster <deng@randomsample.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 29 06:15:00 2020
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1iwfgq-000CCp-1g
	for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jan 2020 06:15:00 +0100
Original-Received: from localhost ([::1]:41128 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1iwfgn-0005Uz-U0
	for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Jan 2020 00:14:57 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37262)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <atamariya@gmail.com>) id 1iwfgK-000561-1u
 for emacs-devel@gnu.org; Wed, 29 Jan 2020 00:14:29 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <atamariya@gmail.com>) id 1iwfgI-0001HR-V2
 for emacs-devel@gnu.org; Wed, 29 Jan 2020 00:14:27 -0500
Original-Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:37703)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <atamariya@gmail.com>)
 id 1iwfgH-0001BT-BC; Wed, 29 Jan 2020 00:14:25 -0500
Original-Received: by mail-io1-xd33.google.com with SMTP id k24so17182319ioc.4;
 Tue, 28 Jan 2020 21:14:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=MGPw09DmqvyjWlGp8czEFrw+DAdZppgPvGd3IzLsHSc=;
 b=rpVdRpJHZSit/O5UZ+VzeVDDqdgwVRHd/433Wjvngnt3VykRJL1ANn1fdbvOnqsjpf
 +2yiGrdv65Odl8JXXmOqmpZq+g4whyQegFv0RaaUJy7+x1+W922jzEav6sTlbILTss3O
 tFJbyI8nNMmad1DhRRIBkfbvDi5ZialIzxny3qlLPOlB09UD0Sn7dGSpZcLkFEi70h48
 MijZy33QiI3j+0GdSqboKyszEhvj6JstQojVONP4OyQuQP2E/hBSyYnoQ77sFlMq+wq8
 Fi0ZFuSFFit5XRLOfANdU3CUvKdKeD+gkcpVOuD+kuRp46BJ5hMhh+M8Ay563oqSrj4H
 EM+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=MGPw09DmqvyjWlGp8czEFrw+DAdZppgPvGd3IzLsHSc=;
 b=r3BeRxnaYqaW3G8FQ7V+ytD1d8fXKKjh+O6yhs3Sm2lJsC5NZOpFCb+8dunyXRDA/Z
 RWQnyb82aAgjm0qKrPuKcyCUttAH+j0S/28D4eLDt4cdVjnCAb3abXispuwH4LhJan3M
 WppRUEdsvVTKG9+5FL1MVlpVPH1FPitfFDXqFW36PHrePl6zvqMhHFJhtn5vp2qBkQpT
 i4OL0x9uWnnK6fhieOXpGMWXcN0g+qcCZOX5F7fRTNPn3r66iWgMKJE+i+Gc13CQE2eC
 HLrkycB2ytblz93TCFu8PmXVJ4YWkupgCa6VG9VJP/ChvBa/TFJrWDCIlgroQK2EjMax
 gj1A==
X-Gm-Message-State: APjAAAWLWPaksxj/h/y7dWp7BcOrnb+UqQrsw01ERHRNcHNxRdslVSLo
 mpUp8IRHRoCoWNgi0+mjiRC4jsdj/14M9Y59FH6qqUekNMtgLw==
X-Google-Smtp-Source: APXvYqzJ+fCtvd5tfqJq92Iobs1bmyqpKJVgihCz4LnfIfZmScjz4blCXFZQj9tImE9Ji8VQFzyViqb+KrPCR0lZwA0=
X-Received: by 2002:a02:cd0d:: with SMTP id g13mr21255499jaq.110.1580274864459; 
 Tue, 28 Jan 2020 21:14:24 -0800 (PST)
In-Reply-To: <878slr5wfu.fsf@randomsample>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::d33
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:244735
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/244735>

--000000000000f1974c059d4069ba
Content-Type: text/plain; charset="UTF-8"

>
> > https://youtu.be/4UcPIdTJLOM .
>
> Note that Semantic will cache the AST between sessions, so if you've
> loaded that file before, it will just load the cache.
>
First use parse/build delay is an inescapable and acceptable  situation in
Java world. Even popular IDEs like Eclipse do that.
While Emacs will only parse current and relevant files, Eclipse insists on
"building" the complete project.

It is also
> very old, and at that time (around Java 1.4 or so) the language was
> still very easy to parse (it doesn't support generics, for instance).
>
Additional info - I've added support for annotations and generics. It's
shown in the demo https://youtu.be/4UcPIdTJLOM?t=50 .
Only Enum is pending.

--000000000000f1974c059d4069ba
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">
&gt; <a href=3D"https://youtu.be/4UcPIdTJLOM" rel=3D"noreferrer" target=3D"=
_blank">https://youtu.be/4UcPIdTJLOM</a> .<br>
<br>
Note that Semantic will cache the AST between sessions, so if you&#39;ve<br=
>
loaded that file before, it will just load the cache.<br></blockquote><div>=
First use parse/build delay is an inescapable and acceptable=C2=A0 situatio=
n in Java world. Even popular IDEs like Eclipse do that.</div><div>While Em=
acs will only parse current and relevant files, Eclipse insists on &quot;bu=
ilding&quot; the complete project.<br></div><div><br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">It is also<br>
very old, and at that time (around Java 1.4 or so) the language was<br>
still very easy to parse (it doesn&#39;t support generics, for instance).<b=
r></blockquote><div>Additional info - I&#39;ve added support for annotation=
s and generics. It&#39;s shown in the demo <a href=3D"https://youtu.be/4UcP=
IdTJLOM?t=3D50">https://youtu.be/4UcPIdTJLOM?t=3D50</a> .<br></div><div>Onl=
y Enum is pending.</div><br></div></div>

--000000000000f1974c059d4069ba--