class Rouge::Lexers::OCL

Public Class Methods

builtins() click to toggle source
# File lib/rouge/lexers/ocl.rb, line 25
def self.builtins
  @builtins ||= Set.new %w(
    self null result true false invalid @pre
    )
end
functions() click to toggle source
# File lib/rouge/lexers/ocl.rb, line 37
def self.functions
  @functions ||= Set.new %w(
    oclAsSet oclIsNew oclIsUndefined oclIsInvalid oclAsType oclIsTypeOf
    oclIsKindOf oclInState oclType oclLocale hasReturned result
    isSignalSent isOperationCallabs floor round max min toString div mod
    size substring concat toInteger toReal toUpperCase toLowerCase
    indexOf equalsIgnoreCase at characters toBoolean includes excludes
    count includesAll excludesAll isEmpty notEmpty sum product
    selectByKind selectByType asBag asSequence asOrderedSet asSet flatten
    union intersection including excluding symmetricDifferencecount
    append prepend insertAt subOrderedSet first last reverse subSequence
    any closure collect collectNested exists forAll isUnique iterate one
    reject select sortedBy allInstances average conformsTo
  )
end
keywords() click to toggle source
# File lib/rouge/lexers/ocl.rb, line 11
def self.keywords
  @keywords ||= Set.new %w(
    context pre post inv init body def derive if then else endif import
    package endpackage let in
  )
end
keywords_type() click to toggle source
# File lib/rouge/lexers/ocl.rb, line 18
def self.keywords_type
  @keywords_type ||= Set.new %w(
    Boolean Integer UnlimitedNatural Real String OrderedSet Tuple Bag Set
    Sequence OclInvalid OclVoid TupleType OclState Collection OclMessage
  )
end
operators() click to toggle source
# File lib/rouge/lexers/ocl.rb, line 31
def self.operators
  @operators ||= Set.new %w(
    or xor and not implies
  )
end