updated the scanner

added all the syntax from the LRM