terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Kotlin support for lizard? #222

Closed mosesliao closed 3 years ago

mosesliao commented 6 years ago

Hi. Any plans for lizard to be used for kotlin?

terryyin commented 6 years ago

Don’t know much about Kotlin. What’s needed to be done?

On 22 Feb 2018, at 3:15 PM, Liao Gangzheng Moses notifications@github.com wrote:

Hi. Any plans for lizard to be used for kotlin?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/222, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYmx2Wt7hI6LLSUBOJULHqmm7Zx5Iks5tXRP_gaJpZM4SO1rH.

mosesliao commented 6 years ago

Kotlin is like swift. I guess we see first. If there is no thumbs up, I will not develop one

mosesliao commented 6 years ago

@terryyin check with you how do you add swift support for lizard? I may need one for kotlin

terryyin commented 6 years ago

Hey,

A late happy birthday and sorry for the super late reply:P

Lizard use a manually created state-machine (not an AST) to parse code. And each language has a bit special states, here’s the swift specific states: https://github.com/terryyin/lizard/blob/master/lizard_languages/swift.py https://github.com/terryyin/lizard/blob/master/lizard_languages/swift.py

On 21 May 2018, at 2:20 PM, Liao Gangzheng Moses notifications@github.com wrote:

@terryyin https://github.com/terryyin check with you how do you add swift support for lizard? I may need one for kotlin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/222#issuecomment-390563913, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYsjSd7pGCX0PxPQgFnXlSAbb9xhOks5t0lzGgaJpZM4SO1rH.

iccengan commented 5 years ago

Since Kotlin is getting more and more popular in Android development (official android development language), Kotlin support for Lizard will be necessary. Hope to see Kotlin's support soon :D

cyw3 commented 5 years ago

Hope to see Kotlin's support soon.

terryyin commented 5 years ago

Let me learn Kotlin first...

On 19 Jul 2019, at 5:08 PM, cyw3 notifications@github.com wrote:

Hope to see Kotlin's support soon.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/222?email_source=notifications&email_token=AAGASYWWDXV5TXFD3X3FAHTQAGHDJA5CNFSM4ER3LLD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LGWNQ#issuecomment-513174326, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGASYX6WXA7EZYSHFUE5UDQAGHDJANCNFSM4ER3LLDQ.

mosesliao commented 5 years ago

as I have said before Kotlin is very similar to swift. Just think like swift and you will get there easily.

This site has some introductions to kotlin https://medium.com/@okta_46281/5-best-sources-to-learn-kotlin-e6cd894b7857

liiri commented 3 years ago

Hiya all, I'm very invested in supporting Kotlin, but am not very familiar with the language. If anyone that's also familiar with Lizard low-level can assist me with a few questions in the integration I'd be happy to make a pull request :)