Compiler_code part

where is line of grammar in code part.
how will compiler know that statements will end.