1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
indexing
description:
"Eiffel bit constants"
library: "Gobo Eiffel Tools Library"
author: "Eric Bezault <ericb@gobosoft.com>"
copyright: "Copyright (c) 1999, Eric Bezault and others"
license: "Eiffel Forum Freeware License v1 (see forum.txt)"
date: "$Date: 2001/02/11 14:33:41 $"
revision: "$Revision: 1.1 $"
class ET_BIT_CONSTANT
inherit
ET_EXPRESSION
creation
make
feature {NONE} -- Initialization
make (a_literal: like literal; a_position: like position) is
-- Create a new Bit constant.
require
a_literal_not_void: a_literal /= Void
-- valid_literal: regexp: [0-1]+[bB]
a_position_not_void: a_position /= Void
do
literal := a_literal
position := a_position
ensure
literal_set: literal = a_literal
position_set: position = a_position
end
feature -- Access
literal: STRING
-- Literal bit value
position: ET_POSITION
-- Position in source code
invariant
literal_not_void: literal /= Void
-- valid_literal: regexp: [0-1]+[bB]
position_not_void: position /= Void
end -- class ET_BIT_CONSTANT
|