Sha256: 3976715a00432f2302695309814e59aafaad510613e010e916245788c8884e60

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

require 'finitio/syntax/lexer'
require 'finitio/syntax/literals'
require 'finitio/syntax/types'
require 'finitio/syntax/expressions'

grammar Finitio::Syntax::Parser
  include Finitio::Syntax::Lexer
  include Finitio::Syntax::Literals
  include Finitio::Syntax::Expressions
  include Finitio::Syntax::Types

  rule system
    (spacing definitions spacing main_type? spacing eof)
    <Finitio::Syntax::System>
  end

  rule definitions
    (type_def (spacing type_def)*)?
    <Finitio::Syntax::Definitions>
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
finitio-0.6.1 lib/finitio/syntax/finitio.citrus
finitio-0.6.0 lib/finitio/syntax/finitio.citrus
finitio-0.5.2 lib/finitio/syntax/finitio.citrus
finitio-0.5.1 lib/finitio/syntax/finitio.citrus
finitio-0.5.0 lib/finitio/syntax/finitio.citrus