Added lval checking to the semantic analysis phase.
Added inline and static declarations to the appropriate functions.