You are not logged in.

#1 2010-07-29 00:03:53

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Bash parser/static analyzer

I'm thinking of creating a parser/analyzer for bash. I know it's not possible to have a complete parse without running it, but for code without `eval` statements and without using variables as commands, it should be possible to at least get something rudimentary to help catch common things.

I've created a git repo to start it off: Bashful

I'll probably do this in either python or perl6. python is more likely to get me help and other coders, but perl6 may give me better tools for parsing. I haven't started coding yet, but I'll start coming up with a set of rules to be implemented in whatever I end up going with.

Last edited by Daenyth (2010-07-29 00:28:21)

Offline

#2 2010-07-29 00:33:47

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Offline

#3 2010-07-29 01:27:39

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bash parser/static analyzer


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB