1. イントロダクション:カオスな文字列に「秩序」を与える プログラムのソースコードは、コンピュータにとってはただの「巨大な文字列」に過ぎません。 def fib(n: int)-> int: if n <= 1: return n return fib(n - 1) + fib(n - 2) 人間はこのコードを見て、瞬時に「関数定義 ...
Static analysis tool that builds a function call graph from Python source code using AST parsing. Shows who calls what, detects recursion/cycles, and outputs as text tree, DOT (Graphviz), or JSON.
シンプルで強力な文法はRubyの特徴のひとつだと言われています。その文法を技術的に支えているのがパーサです。Ruby 3系のひとつの目標として、LSPやRBS、TypeProfをはじめとした各種ツールの拡充があります。それらのツールは多くの場合AST (抽象構文木 ...