Software Development Methods and Tools—CSCI-3308

Static analysis

Download the slides.

We discussed source code parsing into an Abstract Syntax Tree (AST) data structure and the static analysis that makes possible.

Using the JSON grammar we looked at the corresponding parser and its finite state machine.

Then we explored ESLint as a static analysis tool for enforcing style rules and preventing bugs in JavaScript code. The AST explorer site is a useful tool for investigating the structure of JavaScript syntax trees.

Compare the compiled assembly code for an expression composed of numeric literals.