Пример #1
0
        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);
        }
Пример #2
0
 public override void StartedNewLine(SymTextPosition aEOLPosition)
 {
 }
Пример #3
0
 public abstract void StartedNewLine(SymTextPosition aEOLPosition);
Пример #4
0
 public SymToken(string aValue, TClass aClass, SymTextPosition aPosition)
 {
     iValue    = aValue;
     iClass    = aClass;
     iPosition = aPosition;
 }