Simple Scanner that scans and parses the very basic logical statements.