That code looks like some sort of BASIC or even pseudocode but also seems incomplete (No register setup or Config bits).
What did you use to try and build this code?
I recommend using the Free Microchip tools (MPLAB
and learning to write assembler code (then later C code but C is not that good for these small processors).
There are many other example projects on the web to control hobby servos with a PIC. Try googling "PIC servo control" to find a few of them.