Improving Programming Support For Hardware Accelerators Through Automata Processing Abstractions