-
Notifications
You must be signed in to change notification settings - Fork 622
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
Add parser classes, xml, sexp, ini, and toml #519
Comments
https://github.com/arduino/ctags/blob/master/gir.c This is very impressive parser. We should import this then generalize it. |
|
Hard-coded version now works!!!
|
Hey, @p-montanus, I need libxml2. What we should do in gentle way?
|
Luke, use
|
Great. After merging your #592 and #601, I will put make a PR. Instead of targeting maven, I will rewrite ant parser with this new technology. @ffes, @k-takata, and @cweagans, is libxml2 available on your maintained platform? |
(@masatake You misspelled my name. I have fixed it.) I confirmed that MSYS2 has libxml2 packages ( |
I'm very sorry.
Thank you for the comment. Instead of reworking on ant.c, it will be better to create main/lxpath.c. So I can put all libxml2 related ifdef/endif into the one file. |
Spelled |
Spelling is fixed, peacefully. |
Hi folks what is the status of this one? Is some help needed? I came here while investigating how to generate good tags for Clojure. |
Meta sexp parser has two aspects.
I think, what I want is understandable to lisp hackers. If you are just interested in Clojure, you can implement it with a crazy mtable meta parser. |
Ok thanks! This information is very valuable, I will see what I can do! |
|
I will leave Tokyo tomorrow. So I will give you some attractions:)
Like regex and xcmd, having xml parser class will be useful.
We can cover svg, html, xhtml, ant, docbook, ...xpath can be used to specify interesting elements.
I found following code in a public header file of libxml2.
For lisp family, S expression parser class will be uesful.
I think current lisp related parsers are not useful. Generally lisp programmer introduce the application own define-
something
with using define-macro/defmacro. Definitions defined with define-something
should be captured as tags.Following are
def
s in emacs I'm using.Realizing the concept optlib is one of my primary motivation of working on ctags.
However, now I recognize regex syntax I know is not so portable. It is just "syntax error" in MacOSX.
regex on macosx is very limited.
If we introduce a new parser class pcre, users can write a parser with more powerful syntax and portable way. I will never think making current regex parser obsolete but just introduce newer one.
Do you have more ideas about parser classes?
Following code in parse.h is the start point.
Happy hacking.
The text was updated successfully, but these errors were encountered: