I want to code this for PDA. How would I do that in C#?
a^nbc^n (n>=0)
You could start with the Wikipedia article.
The Basics of Compiler Design is a good (freely available) reference that will help you out.
http://www.diku.dk/~torbenm/Basics/basics%5Flulu.pdf