Skip to content

Commit

Permalink
Merge pull request #4130 from masatake/lisp--refactor
Browse files Browse the repository at this point in the history
Lisp: introduce version 0.0 of lisp meta parser
  • Loading branch information
masatake authored Jan 11, 2025
2 parents 4c102e7 + b12f1c0 commit 7ed02a4
Show file tree
Hide file tree
Showing 16 changed files with 448 additions and 201 deletions.
1 change: 1 addition & 0 deletions Tmain/list-fields-with-prefix.d/stdout-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ x UCTAGSxpath no NONE s-- no -- xpath for
- UCTAGSoverline no ReStructuredText --b no -- whether using overline & underline for declaring section
- UCTAGSsectionMarker no ReStructuredText s-- no -- character used for declaring section
- UCTAGSmixin yes Ruby s-- no -- how the class or module is mixed in (mixin:HOW:MODULE)
- UCTAGSdefiner yes Scheme s-- no -- the name of the function or macro that defines the unknown/Y-kind object
- UCTAGSparameter no SystemVerilog --b no -- parameter whose value can be overridden.
- UCTAGStarget yes Thrift s-- no -- the target language specified at "namespace"
- UCTAGSthrows yes Thrift s-- no -- throws list of function
Expand Down
1 change: 1 addition & 0 deletions Tmain/list-fields.d/stdout-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ z kind no NONE s-- no r- [tags output] prepend "kind:" to k/ (or K/) field outpu
- overline no ReStructuredText --b no -- whether using overline & underline for declaring section
- sectionMarker no ReStructuredText s-- no -- character used for declaring section
- mixin yes Ruby s-- no -- how the class or module is mixed in (mixin:HOW:MODULE)
- definer yes Scheme s-- no -- the name of the function or macro that defines the unknown/Y-kind object
- parameter no SystemVerilog --b no -- parameter whose value can be overridden.
- target yes Thrift s-- no -- the target language specified at "namespace"
- throws yes Thrift s-- no -- throws list of function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
foo input.scm /^(define-module foo$/;" function language:Scheme roles:def
foo input.scm /^(define-module foo$/;" unknown language:Scheme roles:def definer:DEFINE-MODULE
foobar input.scm /^(define (foobar)$/;" function language:Scheme roles:def
foo input.scm /^(define-module foo$/;" module language:myGauche roles:def
bar input.scm /^ (use bar)$/;" module language:myGauche scope:module:foo roles:used
Expand Down
2 changes: 2 additions & 0 deletions docs/man-pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Man pages
ctags-lang-automake(7) <man/ctags-lang-automake.7.rst>
ctags-lang-c(7) <man/ctags-lang-c.7.rst>
ctags-lang-c++(7) <man/ctags-lang-c++.7.rst>
ctags-lang-clojure(7) <man/ctags-lang-clojure.7.rst>
ctags-lang-cuda(7) <man/ctags-lang-cuda.7.rst>
ctags-lang-elm(7) <man/ctags-lang-elm.7.rst>
ctags-lang-emacslisp(7) <man/ctags-lang-emacslisp.7.rst>
Expand All @@ -41,6 +42,7 @@ Man pages
ctags-lang-python(7) <man/ctags-lang-python.7.rst>
ctags-lang-r(7) <man/ctags-lang-r.7.rst>
ctags-lang-rmarkdown(7) <man/ctags-lang-rmarkdown.7.rst>
ctags-lang-scheme(7) <man/ctags-lang-scheme.7.rst>
ctags-lang-scss(7) <man/ctags-lang-scss.7.rst>
ctags-lang-sql(7) <man/ctags-lang-sql.7.rst>
ctags-lang-systemtap(7) <man/ctags-lang-systemtap.7.rst>
Expand Down
37 changes: 37 additions & 0 deletions docs/man/ctags-lang-clojure.7.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.. _ctags-lang-clojure(7):

==============================================================
ctags-lang-clojure
==============================================================

Random notes about tagging Clojure source code with Universal Ctags

:Version: 6.1.0
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **ctags** ... --languages=+Clojure ...
| **ctags** ... --language-force=Clojure ...
| **ctags** ... --map-Clojure=+.clj ...
| **ctags** ... --map-Clojure=+.cljs ...
| **ctags** ... --map-Clojure=+.cljc ...
DESCRIPTION
-----------
This man page gathers random notes about tagging Clojure source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Add ``unknown`` kind.

* Add ``definer`` field.

SEE ALSO
--------
:ref:`ctags(1) <ctags(1)>`
41 changes: 41 additions & 0 deletions docs/man/ctags-lang-scheme.7.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _ctags-lang-scheme(7):

==============================================================
ctags-lang-scheme
==============================================================

Random notes about tagging Scheme source code with Universal Ctags

:Version: 6.1.0
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **ctags** ... --languages=+Scheme ...
| **ctags** ... --language-force=Scheme ...
| **ctags** ... --map-Scheme=+.SCM ...
| **ctags** ... --map-Scheme=+.SM ...
| **ctags** ... --map-Scheme=+.sch ...
| **ctags** ... --map-Scheme=+.scheme ...
| **ctags** ... --map-Scheme=+.scm ...
| **ctags** ... --map-Scheme=+.sm ...
| **ctags** ... --map-Scheme=+.rkt ...
DESCRIPTION
-----------
This man page gathers random notes about tagging Scheme source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Add ``unknown`` kind.

* Add ``definer`` field.

SEE ALSO
--------
:ref:`ctags(1) <ctags(1)>`
2 changes: 2 additions & 0 deletions man/GNUmakefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ GEN_IN_MAN_FILES = \
ctags-lang-automake.7 \
ctags-lang-c.7 \
ctags-lang-c++.7 \
ctags-lang-clojure.7 \
ctags-lang-cuda.7 \
ctags-lang-elm.7 \
ctags-lang-emacslisp.7 \
Expand All @@ -52,6 +53,7 @@ GEN_IN_MAN_FILES = \
ctags-lang-python.7 \
ctags-lang-r.7 \
ctags-lang-rmarkdown.7 \
ctags-lang-scheme.7 \
ctags-lang-scss.7 \
ctags-lang-sql.7 \
ctags-lang-systemtap.7 \
Expand Down
37 changes: 37 additions & 0 deletions man/ctags-lang-clojure.7.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.. _ctags-lang-clojure(7):

==============================================================
ctags-lang-clojure
==============================================================
---------------------------------------------------------------------
Random notes about tagging Clojure source code with Universal Ctags
---------------------------------------------------------------------
:Version: @VERSION@
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+Clojure ...
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=Clojure ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Clojure=+.clj ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Clojure=+.cljs ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Clojure=+.cljc ...

DESCRIPTION
-----------
This man page gathers random notes about tagging Clojure source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Add ``unknown`` kind.

* Add ``definer`` field.

SEE ALSO
--------
ctags(1)
41 changes: 41 additions & 0 deletions man/ctags-lang-scheme.7.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _ctags-lang-scheme(7):

==============================================================
ctags-lang-scheme
==============================================================
---------------------------------------------------------------------
Random notes about tagging Scheme source code with Universal Ctags
---------------------------------------------------------------------
:Version: @VERSION@
:Manual group: Universal Ctags
:Manual section: 7

SYNOPSIS
--------
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+Scheme ...
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=Scheme ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.SCM ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.SM ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.sch ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.scheme ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.scm ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.sm ...
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Scheme=+.rkt ...

DESCRIPTION
-----------
This man page gathers random notes about tagging Scheme source code.

VERSIONS
--------

Change since "0.0"
~~~~~~~~~~~~~~~~~~

* Add ``unknown`` kind.

* Add ``definer`` field.

SEE ALSO
--------
ctags(1)
Loading

0 comments on commit 7ed02a4

Please sign in to comment.