SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 08/02/2017, 05:56 PM   #21
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: Pawn Linting/Static Analysis

Sadly I didn't have time to finish this project, I'm focusing on a Redis plugin instead. I may come back to this but I'd like to rewrite it in Go instead of Python as I think I could develop and test it much faster.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 09/02/2017, 07:46 AM   #22
xxmitsu
Gangsta
 
Join Date: Feb 2009
Posts: 623
Reputation: 36
Default Re: Pawn Linting/Static Analysis

As long as it's open source, it's fine by me
__________________
aka xanto - Retired - Former eGaming.ro technical staff.
xxmitsu is offline   Reply With Quote
Old 05/08/2017, 04:32 PM   #23
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: Pawn Linting/Static Analysis

I've actually *finally* started this project! woo!

The code and a roadmap is here: https://github.com/Southclaws/pawn-parser

Thanks to the existing code from the Golang scanner/token packages, most of the hard work is already done! What I've done is forked those packages and I'll modify them to fit Pawn soon.

First of all, I'll write a set of test cases and shape the codebase to parse it.

Once that's done, I'll write a VS Code plugin!

of course by that time pawn will be long dead but hey ho
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 05/08/2017, 06:00 PM   #24
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,535
Reputation: 552
Default Re: Pawn Linting/Static Analysis

Pawn will always live (at least in my heart). Can't wait for this project, maybe I'll write sublime plugin.
Misiur is offline   Reply With Quote
Old 06/08/2017, 05:13 AM   #25
iKarim
Gangsta
 
iKarim's Avatar
 
Join Date: Oct 2015
Posts: 584
Reputation: 135
Default Re: Pawn Linting/Static Analysis

Quote:
Originally Posted by [HLF]Southclaw View Post
I've actually *finally* started this project! woo!
I'll write a VS Code plugin!
Yes please
iKarim is online now   Reply With Quote
Old 20/08/2017, 04:09 PM   #26
TheCman
Big Clucker
 
TheCman's Avatar
 
Join Date: Apr 2011
Posts: 102
Reputation: 15
Default Re: Pawn Linting/Static Analysis

Your best option AFAIK is to work your way up from a C or JS linter. I'm fairly sure there hasn't been any progress on this, or we'd have heard about it by now (us or g00gle FWIW).
TheCman is offline   Reply With Quote
Old 20/08/2017, 04:31 PM   #27
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: Pawn Linting/Static Analysis

Yeah I'm working on it, I'm using the Golang parser as a base which has proved quite easy to migrate from. Tokenisation is working, now I've just got to build the AST.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 20/08/2017, 06:01 PM   #28
TheCman
Big Clucker
 
TheCman's Avatar
 
Join Date: Apr 2011
Posts: 102
Reputation: 15
Default Re: Pawn Linting/Static Analysis

Oh never mind, for some reason I wasn't watching the proper page and didn't realize you had only been working two weeks on the project when I posted. Great job if tokenisation works, congratulations!
TheCman is offline   Reply With Quote
Old 07/09/2017, 08:15 PM   #29
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,535
Reputation: 552
Default Re: Pawn Linting/Static Analysis

Hi, are you going to continue your project? I'd help, but im not a Go guy
Misiur is offline   Reply With Quote
Old 07/09/2017, 09:31 PM   #30
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,947
Reputation: 1510
Default Re: Pawn Linting/Static Analysis

Quote:
Originally Posted by Misiur View Post
Hi, are you going to continue your project? I'd help, but im not a Go guy
Yeah still interested! I've got tokenisation done and started on the AST part - if you've done C then Go will be very easy to pick up (especially since this project won't be using any concurrency features of Go so it'll be straight and simple procedural code!)

It's on GitHub if you're interested, I could do with documenting bits of it but I'm mostly offline now due to a lack of internet connection so I'll probably pick up the pace a bit once I have that sorted!
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static NPC - Help Lumabd Scripting Help 1 08/07/2015 04:42 AM
[Ajuda] Static! Wallker Português/Portuguese 6 04/08/2012 07:51 PM
[Tool/Web/Other] PAWN Scanner - Scan PAWN files for information. Slice Tools and Files 10 15/07/2012 07:09 PM


All times are GMT. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.