-
Notifications
You must be signed in to change notification settings - Fork 1
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
making built-in parser #1
Comments
Hi Thanks! I've been using my regex tagger for a while now with vim-tagbar and I'm fairly satisfied with it. There are some other bits and pieces to look into, however. While my own experience is good enough it's tempting for me to skip the 80% work to achieve the last 20% results, and spend more time writing Elm code. In particular:
|
I opened universal-ctags/ctags#1213. If possible, I would like you to make a pull request for merging elm parser into u-ctags.
I will add Thank you for reading. |
push/pop don't help?
Yes, this may be the most favoured request for developers of regex parser. one of approach is implementing multiple tables in regex parser engine.
I don't understand this. I need an example. |
Basically yes!
Thanks for such supportive instructions! it'll probably take till my xmas
holidays befor i have time to pick this up. Meantime i might experiment
more with the actual options.
What's the `{goto=}` feature?
Thanks again for your commitment to u-ctags. and for your careful
encouragement.
…On 29 Nov 2016 15:46, "Masatake YAMATO" ***@***.***> wrote:
Hi,
Thank you for using optlib I designed. As far as I know you are the first
person using optlib seriously.
I have been disappointed that none utilizes it. But today I found your
project!
How do you think being a member of @universal-ctags
<https://github.com/Universal-ctags> project for improving your elm regex
parser?
The project offers at least following two good things:
- test environment (http://docs.ctags.io/en/latest/units.html)
- optlib2c translator that makes your optlib parser built-in
(https://github.com/universal-ctags/ctags/tree/master/optlib)
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAeQZguVfzC9OlR0eN9PbXS5ICsSZPQSks5rDEjKgaJpZM4K_IH_>
.
|
This is not implemented. Just an idea. I wrote a page about regex parser features I added to http://docs.ctags.io/en/latest/optlib.html. |
Okay that explains why I didn't find Its a way to get separate sets of patterns to match in under different conditions. I had been wondering about this. In stead of switching explicitly between tables, I was wondering if it made sense to add a long flag to enable patterns to match the text only if some condition was true of the scope stack. For example:
Would something like this work? |
I'm not sure. Prototypes are needed. For making a prototype 3 things are needed:
Is an example of "imaginary long flag specification".
I see. How will you represent these condition/action pairs in command line? |
Okay, here is a stab at adding Elm as a built-in optlib for u-ctags. The tests pass! And I can now get the exe to output elm tags without pointing it to my optlib so I guess I complied it in. I've not modified Merry Xmas @masatake |
Thanks. I make one pull request that I would like to merge to your chage. Could you update news.rst and win32 stuff? win32 stuff? (win32 stuff is not sorted. So you can insert your .c anywhere you want. Appveyor, ci for winowns may notify us when we do something wrong in the win32 stuff.) I have a bug comment about how to handle Thank you again. |
BTW, I recommend you to make a topic branch when adding a feature or fixing a bug. |
Thanks; good point. I thought it might be unnecessary for a fork. But I
read http://blog.scottlowe.org/2015/01/27/using-fork-branch-git-workflow/
and I understand better now.
…On 2 Jan 2017 05:24, "Masatake YAMATO" ***@***.***> wrote:
BTW, I recommend you to make a topic branch when adding a feature or
fixing a bug.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeQZiVkHjMGznX5cnILyX_l_KrPkoEgks5rOIn5gaJpZM4K_IH_>
.
|
Hi,
Thank you for using optlib I designed. As far as I know you are the first person using optlib seriously.
I have been disappointed that none utilizes it. But today I found your project!
How do you think being a member of @universal-ctags project for improving your elm regex parser?
The project offers at least following two good things:
(https://github.com/universal-ctags/ctags/tree/master/optlib)
Thank you.
The text was updated successfully, but these errors were encountered: