Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lisp: introduce version 0.0 of lisp meta parser #4130

Merged
merged 11 commits into from
Jan 11, 2025

Conversation

masatake
Copy link
Member

@masatake masatake commented Nov 26, 2024

This one is not S expression-based but still line-oriented. However, the meta parser supports all Lisp, EmacsLisp, Clojure, and Scheme like before.

  • parser versioning: definer: field and unknown/Y kind are introduced to Clojure and Scheme as a side effect.

@masatake masatake force-pushed the lisp--refactor branch 2 times, most recently from 1a38a41 to fc50b5f Compare December 2, 2024 08:45
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.92%. Comparing base (4c102e7) to head (b12f1c0).
Report is 12 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4130   +/-   ##
=======================================
  Coverage   85.92%   85.92%           
=======================================
  Files         241      241           
  Lines       59082    59050   -32     
=======================================
- Hits        50764    50739   -25     
+ Misses       8318     8311    -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@masatake masatake added this to the 6.2 milestone Jan 2, 2025
@masatake masatake assigned masatake and unassigned masatake Jan 9, 2025
@masatake masatake marked this pull request as ready for review January 9, 2025 16:18
Add "unknown" kind and "definer" field.

Signed-off-by: Masatake YAMATO <[email protected]>
…sing lambda

This is preparation for rewriting the Scheme parser based on
x-lisp.h.

Scheme as a syntactic sugar for defining procedures:

       (define (f x) ... means (define f (lambda (x) ...
       (define ((g x) y) ... means (define g (lambda (x) (lambda (y) ...))

findLispTagsCommon() must skip '(' to extract f from (define (f
... and g from (define ((g .... to work as a part of the Scheme parser.

Signed-off-by: Masatake YAMATO <[email protected]>
Add "unknown" kind and "definer" field.

Signed-off-by: Masatake YAMATO <[email protected]>
@masatake masatake merged commit 7ed02a4 into universal-ctags:master Jan 11, 2025
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant