[Top][All Lists]

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

[AUCTeX-devel] Extending xparse.el to parse argument specification

From: Arash Esbati
Subject: [AUCTeX-devel] Extending xparse.el to parse argument specification
Date: Thu, 22 Sep 2016 12:30:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1

Hi all,

I was thinking about how to extend xparse.el in order to parse argument
specs (which can be quite complicated) and now have a working setup --
diff and patched xparse.el are attached.  Main work is done by
`LaTeX-xparse-macro-parse'.  I don't have much experience with this kind
of parsing within Emacs.  Question: Is this kind of implementation
robust enough or are there better ways to do the job?

Here a small document I played with:

--8<---------------cut here---------------start------------->8---


\DeclareDocumentCommand \Foo { > { \ReverseBoolean } s o > { \SplitList { ; } } 
m r!! }{
  \ProcessList {#1} { \SomeDocumentFunction }

C-c C-m Foo RET
--8<---------------cut here---------------end--------------->8---

Any comments welcome.

Best, Arash

Attachment: xparse.el.diff
Description: Text Data

Attachment: xparse.el
Description: application/emacs-lisp

reply via email to

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