How to design a program that converts regular expression into NFA taking only operators into consideration involved in the expression

I want to write a program that converts a regular expression into non deterministic finite state automata(NFA)
with only operators involved in the expression

you will have to use thomson’s algorithm
check this out