Add functions for node kind and action parsing