Refactor: move LR(0) structs to *.h
Make LR(0) API
Add calloc check everywhere