change magic frequency strings in Parser

-change magic strings for frequency to the constants