|
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 |
_______________________________________________Just now, I rewrited the python_language.cpp using the keywords and operators parser.Currently, the PR rewrited the following languages:+ Java+ Scala+ Python
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 andScala Project: GNU TeXmacsSubmitted by: sadhenSubmitted on: Sat 18 Jan 2020 10:10:59 PM CSTCategory: EditorAction: NonePrivacy: PublicAssigned to: vdhoevenOriginator Email: Open/Closed: OpenRelease: Discussion Lock: AnyFixed Release: Stable:_______________________________________________________Details:Use the following command to download the diff to /tmp/diff.wget https://github.com/texmacs/texmacs/pull/35.diff -O /tmp/diff_______________________________________________________Reply to this item at:_______________________________________________Message sent via Savannah_______________________________________________Texmacs-dev mailing list
[Prev in Thread] | Current Thread | [Next in Thread] |