public void HandleEndOfLineDetected(SymTextPosition aEOLPosition) { // Report to children int count = iWorkers.Count; for (int i = 0; i < count; i++) { SymLexerWorker worker = (SymLexerWorker)iWorkers[i]; worker.StartedNewLine(aEOLPosition); } // Add a token for the new line - do this after reporting the // event to the children so that they can flush any data // they have before we append the new line. SymToken token = new SymToken("", SymToken.TClass.EClassNewLine, aEOLPosition); FlushToken(token); // Report new line event ReportEvent(TEvent.EEventLexingNewLine, token); }
public override void StartedNewLine(SymTextPosition aEOLPosition) { }
public abstract void StartedNewLine(SymTextPosition aEOLPosition);
public SymToken(string aValue, TClass aClass, SymTextPosition aPosition) { iValue = aValue; iClass = aClass; iPosition = aPosition; }