texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Review Request: keywords and operators parser


From: Darcy Shen
Subject: Re: [Texmacs-dev] Review Request: keywords and operators parser
Date: Sun, 15 Mar 2020 22:02:42 +0800
User-agent: ZohoCN Mail

To reduce the risk of bugs, but do not delay the development plans:

I have submitted the code with only the keyword and operator parser.

And based on it, I quickly write a `dot_language.cpp` for the graphviz plugin.

---- On Sat, 2020-01-25 17:03:18 Darcy Shen via Texmacs-dev <address@hidden> wrote ----

Just now, I rewrited the python_language.cpp using the keywords and operators parser.

Currently, the PR rewrited the following languages:
+ Java
+ Scala
+ Python


---- On Sat, 2020-01-18 22:14:54 Darcy Shen via Texmacs-dev <address@hidden> wrote ----




_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev

## Keywords and Operators Parser
Take Java for example, we define `java-keywords` and `java-operators` in `java-lang.scm`.

The `keyword_parser` in `java_language.cpp` will load `java-keywords` when initialized, it will parse keywords and calculate the corresponding keyword group for proper color.

The `keyword_parser` and `operator_parser` allow us to define keywords and operators in scheme, this is the killer feature.

## Ref
https://savannah.gnu.org/patch/?9884



-------- Forwarded Message --------
Subject:
[patch #9884] Parser: keywords and operators parser on Java and Scala
Date:
Sat, 18 Jan 2020 09:11:00 -0500 (EST)
From:
Darcy Shen <address@hidden>
To:
Joris van der Hoeven <address@hidden>, Darcy Shen <address@hidden>, address@hidden, address@hidden, address@hidden


URL:

Summary: Parser: keywords and operators parser on Java and
Scala Project: GNU TeXmacs
Submitted by: sadhen
Submitted on: Sat 18 Jan 2020 10:10:59 PM CST
Category: Editor
Action: None
Privacy: Public
Assigned to: vdhoeven
Originator Email: Open/Closed: Open
Release: Discussion Lock: Any
Fixed Release: Stable:
_______________________________________________________

Details:


Use the following command to download the diff to /tmp/diff.







_______________________________________________________

Reply to this item at:


_______________________________________________
Message sent via Savannah


_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]