Mais conteúdo relacionado
Mais de Yoshifumi Yamaguchi (10)
[20110219] pfffについて
- 22. • •
• •
• •
• •
• •
• •
• •
• •
- 24. • •
• •
• •
• •
• •
• •
• •
• •
- 25. • •
• •
• •
• •
• •
• •
• •
• •
- 30. •
•
$ pfff -parse_php <dir or file>
- 31. •
•
$ sgrep -e ‘strstr(...) == false’ *.php
$ find . name *.php | xargs grep ‘strstr(...) == false’
- 32. •
$ sgrep -e ‘foo(..., 1, ...)’ *.php
$hoge
=
$a-‐>foo($spam,
1,
$egg) //
$hoge
=
$a-‐>foo($spam,
//
OK
1,
$egg)
- 33. •
•
//remove_second_arg_foo.spatch
foo(X
- ,Y
)
//
remove_second_arg_foo_alt.spatch
-‐
foo(X,Y)
+
foo(X)
- 34. •
$ spatch -c <patch> *.php
- 36. •
function foo($avar) {
return $avarr;
}
$
scheck
test.php
demos/scheck.php:4:9:
CHECK:
use
of
undefined
variable
$avarr
demos/scheck.php:3:13:
CHECK:
unused
Param
variable
$avar
- 45. •
•
– lang_xxx/parsing/lexer_xxx.mll
•
– lang_xxx/parsing/ast_xxx.ml
•
– lang_xxx/parsing/ast_xxx.ml