Sha256: 061d13d0f8ccb2aa7971cb267ec53c1e1e6ca3d148ce6bdb25587022fee268b2

Contents?: true

Size: 860 Bytes

Versions: 38

Compression:

Stored size: 860 Bytes

Contents

# -*- coding: utf-8 -*- #
# frozen_string_literal: true
#
# adapted from lustre.rf (adapted from ocaml.rb), hence some ocaml-ism migth remains
module Rouge
  module Lexers
    load_lexer 'lustre.rb'

    class Lutin < Lustre
      title "Lutin"
      desc 'The Lutin programming language (Verimag)'
      tag 'lutin'
      filenames '*.lut'
      mimetypes 'text/x-lutin'

      def self.keywords
        @keywords ||= Set.new %w(
          let in node extern system returns weak strong assert raise try catch
          trap do exist erun run type ref exception include false true 
        )
      end

      def self.word_operators
        @word_operators ||= Set.new %w(
           div and xor mod or not nor if then else pre) 
      end

      def self.primitives
        @primitives ||= Set.new %w(int real bool trace loop fby)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
rouge-4.5.1 lib/rouge/lexers/lutin.rb
rouge-4.5.0 lib/rouge/lexers/lutin.rb
rouge-4.4.0 lib/rouge/lexers/lutin.rb
rouge-4.3.0 lib/rouge/lexers/lutin.rb
rouge-4.2.1 lib/rouge/lexers/lutin.rb
rouge-4.2.0 lib/rouge/lexers/lutin.rb
rouge-4.1.3 lib/rouge/lexers/lutin.rb
rouge-4.1.2 lib/rouge/lexers/lutin.rb
rouge-4.1.1 lib/rouge/lexers/lutin.rb
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/lexers/lutin.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/lexers/lutin.rb
rouge-4.1.0 lib/rouge/lexers/lutin.rb
rouge-4.0.1 lib/rouge/lexers/lutin.rb
rouge-4.0.0 lib/rouge/lexers/lutin.rb
rouge-3.30.0 lib/rouge/lexers/lutin.rb
rouge-3.29.0 lib/rouge/lexers/lutin.rb
rouge-3.28.0 lib/rouge/lexers/lutin.rb
rouge-3.27.0 lib/rouge/lexers/lutin.rb
rouge-3.26.1 lib/rouge/lexers/lutin.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/lutin.rb