Completed yacc part :) including arrays and nested functions [hopefully]