Parser for sgn, log, ln