Class PlasmCodeScanner

  extended byorg.eclipse.jface.text.rules.RuleBasedScanner
      extended byit.uniroma3.plasm.editors.PlasmCodeScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.ITokenScanner

public class PlasmCodeScanner
extends org.eclipse.jface.text.rules.RuleBasedScanner

A rule based PLaSM code scanner. It contains all rules to classify codewords between Keywords, Digits, Strings, Comments, ... Add your code rules here.

EcT(o)PLaSM Group

Field Summary
Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner
Constructor Summary
PlasmCodeScanner(PlasmColorProvider colorProvider)
          Default constructor which creates all rules for scanning PLaSM code.
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PlasmCodeScanner(PlasmColorProvider colorProvider)
Default constructor which creates all rules for scanning PLaSM code. Each rule define a Token object used to classify different type of code: Operators, Keywords, Digits, Strings, Comments and Default text.

colorProvider - the color provider for all different PLaSM syntax highlighting colors