public tokenObject(tokenType type, string content, int column, int row) { _type = type; _content = new tokenContent(); _content.setValue(content); _coordinates = new tokenCoordinates(column, row); }
public tokenObject(tokenType type, string content, tokenCoordinates coordinates) { _type = type; _content = new tokenContent(); _content.setValue(content); _coordinates = coordinates; }
public nlexiEngine(string PATH, Encoding ENCODING) { //Set up the Streamer _path = PATH; _encoding = ENCODING ?? Encoding.Default; _reader = new StreamReader(_path, _encoding); //Set up the Locations. _currentLocation = new tokenCoordinates(); _lastLocation = _currentLocation.DeepCopy(); //Set up the Stacks. _layerStack = new List <layerObject>(); //Set up the Dictionary. _dictionary = new lexiDictionary(); //Set up the Generated Token Repository. _generatedTokens = new List <tokenObject>(); //Set up the Lexeme. _currentLexeme = ""; _lastCharacterRead = '\0'; _currentCharacterRead = '\0'; _nextCharacterRead = (char)_reader.Peek(); //Set up the Character Streamer. AddLayer("DEPTHZERO"); }
public layerObject(string value, tokenCoordinates coordinates) { _layername = value; _coordinates = coordinates; }
private void CurrentTokenBeginning() { _lastLocation = _currentLocation.DeepCopy(); }