inform6lib 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +125 -0
- data/Rakefile +65 -0
- data/lib/inform/English.h.rb +1279 -0
- data/lib/inform/Grammar.h.inf.rb +350 -0
- data/lib/inform/Parser.h.rb +145 -0
- data/lib/inform/VerbLib.h.rb +77 -0
- data/lib/inform/infix.h.inf.rb +58 -0
- data/lib/inform/infix.h.rb +1064 -0
- data/lib/inform/linklpa.h.rb +139 -0
- data/lib/inform/linklv.h.rb +174 -0
- data/lib/inform/parserm.h.rb +5884 -0
- data/lib/inform/verblibm.h.rb +2481 -0
- metadata +57 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# frozen_string_literal: false
|
|
3
|
+
|
|
4
|
+
# ==============================================================================
|
|
5
|
+
# LINKLPA: Link declarations of common properties and attributes.
|
|
6
|
+
#
|
|
7
|
+
# Supplied for use with Inform 6 -- Release 6/11 -- Serial number 040227
|
|
8
|
+
#
|
|
9
|
+
# Copyright Graham Nelson 1993-2004 but freely usable (see manuals)
|
|
10
|
+
#
|
|
11
|
+
# This file is automatically Included in your game file by "Parser".
|
|
12
|
+
# ==============================================================================
|
|
13
|
+
|
|
14
|
+
# ------------------------------------------------------------------------------
|
|
15
|
+
# Some VM-specific constants.
|
|
16
|
+
# (WORDSIZE and TARGET_XXX are defined by the compiler.)
|
|
17
|
+
# ------------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
if defined? TARGET_ZCODE
|
|
20
|
+
NULL = 0xffff
|
|
21
|
+
WORD_HIGHBIT = 0x8000
|
|
22
|
+
else
|
|
23
|
+
# TARGET_GLULX
|
|
24
|
+
NULL = 0xffffffff
|
|
25
|
+
WORD_HIGHBIT = 0x80000000
|
|
26
|
+
end
|
|
27
|
+
# defined? TARGET_
|
|
28
|
+
|
|
29
|
+
# ------------------------------------------------------------------------------
|
|
30
|
+
# The common attributes and properties.
|
|
31
|
+
# ------------------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
Attribute :animate
|
|
34
|
+
if defined? USE_MODULES
|
|
35
|
+
unless animate == 0
|
|
36
|
+
Message(error: "Please move your Attribute declarations after the Include \"Parser\" line: " \
|
|
37
|
+
"otherwise it will be impossible to USE_MODULES")
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Attribute :absent
|
|
42
|
+
Attribute :clothing
|
|
43
|
+
Attribute :concealed
|
|
44
|
+
Attribute :container
|
|
45
|
+
Attribute :door
|
|
46
|
+
Attribute :edible
|
|
47
|
+
Attribute :enterable
|
|
48
|
+
Attribute :general
|
|
49
|
+
Attribute :light
|
|
50
|
+
Attribute :lockable
|
|
51
|
+
Attribute :locked
|
|
52
|
+
Attribute :moved
|
|
53
|
+
Attribute :on
|
|
54
|
+
Attribute :open
|
|
55
|
+
Attribute :openable
|
|
56
|
+
Attribute :proper
|
|
57
|
+
Attribute :scenery
|
|
58
|
+
Attribute :scored
|
|
59
|
+
Attribute :static
|
|
60
|
+
Attribute :supporter
|
|
61
|
+
Attribute :switchable
|
|
62
|
+
Attribute :talkable
|
|
63
|
+
Attribute :transparent
|
|
64
|
+
Attribute :visited
|
|
65
|
+
Attribute :workflag
|
|
66
|
+
Attribute :worn
|
|
67
|
+
|
|
68
|
+
Attribute :male
|
|
69
|
+
Attribute :female
|
|
70
|
+
Attribute :neuter
|
|
71
|
+
Attribute :pluralname
|
|
72
|
+
|
|
73
|
+
# ------------------------------------------------------------------------------
|
|
74
|
+
|
|
75
|
+
Property :additive, :before, nil
|
|
76
|
+
Property :additive, :after, nil
|
|
77
|
+
Property :additive, :life, nil
|
|
78
|
+
|
|
79
|
+
Property :n_to
|
|
80
|
+
Property :s_to
|
|
81
|
+
Property :e_to
|
|
82
|
+
Property :w_to
|
|
83
|
+
Property :ne_to
|
|
84
|
+
Property :nw_to
|
|
85
|
+
Property :se_to
|
|
86
|
+
Property :sw_to
|
|
87
|
+
Property :u_to
|
|
88
|
+
Property :d_to
|
|
89
|
+
Property :in_to
|
|
90
|
+
Property :out_to
|
|
91
|
+
|
|
92
|
+
# if defined? USE_MODULES
|
|
93
|
+
# unless 7 >= n_to
|
|
94
|
+
# Message(error: "Please move your Property declarations after the Include \"Parser\" line: " \
|
|
95
|
+
# "otherwise it will be impossible to USE_MODULES")
|
|
96
|
+
# end
|
|
97
|
+
# end
|
|
98
|
+
|
|
99
|
+
Property :door_to
|
|
100
|
+
Property :with_key
|
|
101
|
+
Property :door_dir
|
|
102
|
+
Property :invent
|
|
103
|
+
Property :plural
|
|
104
|
+
Property :add_to_scope
|
|
105
|
+
Property :list_together
|
|
106
|
+
Property :react_before
|
|
107
|
+
Property :react_after
|
|
108
|
+
Property :grammar
|
|
109
|
+
Property :additive, :orders
|
|
110
|
+
|
|
111
|
+
Property :initial
|
|
112
|
+
Property :when_open
|
|
113
|
+
Property :when_closed
|
|
114
|
+
Property :when_on
|
|
115
|
+
Property :when_off
|
|
116
|
+
Property :description
|
|
117
|
+
Property :additive, :describe, nil
|
|
118
|
+
Property :article, "a"
|
|
119
|
+
|
|
120
|
+
Property :cant_go
|
|
121
|
+
|
|
122
|
+
Property :found_in # For fiddly reasons this can't alias
|
|
123
|
+
|
|
124
|
+
Property :time_left
|
|
125
|
+
Property :number
|
|
126
|
+
Property :additive, :time_out, nil
|
|
127
|
+
Property :daemon
|
|
128
|
+
Property :additive, :each_turn, nil
|
|
129
|
+
|
|
130
|
+
Property :capacity, 100
|
|
131
|
+
|
|
132
|
+
Property :short_name, 0
|
|
133
|
+
Property :short_name_indef, 0
|
|
134
|
+
Property :parse_name, 0
|
|
135
|
+
|
|
136
|
+
Property :articles
|
|
137
|
+
Property :inside_description
|
|
138
|
+
|
|
139
|
+
# ==============================================================================
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# frozen_string_literal: false
|
|
3
|
+
|
|
4
|
+
# ==============================================================================
|
|
5
|
+
# LINKLV: Link declarations of library variables.
|
|
6
|
+
#
|
|
7
|
+
# Supplied for use with Inform 6 -- Release 6/11 -- Serial number 040227
|
|
8
|
+
#
|
|
9
|
+
# Copyright Graham Nelson 1993-2004 but freely usable (see manuals)
|
|
10
|
+
#
|
|
11
|
+
# This file is automatically Included in your game file by "verblibm" only if
|
|
12
|
+
# you supply the -U compiler switch to use pre-compiled Modules.
|
|
13
|
+
# ==============================================================================
|
|
14
|
+
|
|
15
|
+
# Copyright Nels Nelson 2008-2022 but freely usable (see license)
|
|
16
|
+
#
|
|
17
|
+
# You should have received a copy of the Artistic License
|
|
18
|
+
# along with the Inform6 Ruby Port.
|
|
19
|
+
#
|
|
20
|
+
# If not, see <https://www.perlfoundation.org/artistic-license-20.html>.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# ------------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
import_global :location
|
|
26
|
+
import_global :sline1
|
|
27
|
+
import_global :sline2
|
|
28
|
+
|
|
29
|
+
import_global :top_object
|
|
30
|
+
import_global :standard_interpreter
|
|
31
|
+
import_global :undo_flag
|
|
32
|
+
import_global :transcript_mode
|
|
33
|
+
|
|
34
|
+
import_global :xcommsdir
|
|
35
|
+
|
|
36
|
+
import_global :turns
|
|
37
|
+
import_global :the_time
|
|
38
|
+
import_global :time_rate
|
|
39
|
+
import_global :time_step
|
|
40
|
+
import_global :active_timers
|
|
41
|
+
|
|
42
|
+
import_global :score
|
|
43
|
+
import_global :last_score
|
|
44
|
+
import_global :notify_mode
|
|
45
|
+
import_global :places_score
|
|
46
|
+
import_global :things_score
|
|
47
|
+
|
|
48
|
+
import_global :player
|
|
49
|
+
import_global :deadflag
|
|
50
|
+
|
|
51
|
+
import_global :lightflag
|
|
52
|
+
import_global :real_location
|
|
53
|
+
import_global :visibility_ceiling
|
|
54
|
+
import_global :lookmode
|
|
55
|
+
import_global :print_player_flag
|
|
56
|
+
import_global :lastdesc
|
|
57
|
+
|
|
58
|
+
import_global :c_style
|
|
59
|
+
import_global :lt_value
|
|
60
|
+
import_global :listing_together
|
|
61
|
+
import_global :listing_size
|
|
62
|
+
import_global :wlf_indent
|
|
63
|
+
import_global :inventory_stage
|
|
64
|
+
import_global :inventory_style
|
|
65
|
+
import_global :pretty_flag
|
|
66
|
+
import_global :menu_nesting
|
|
67
|
+
import_global :menu_item
|
|
68
|
+
import_global :item_width
|
|
69
|
+
import_global :item_name
|
|
70
|
+
import_global :lm_n
|
|
71
|
+
import_global :lm_o
|
|
72
|
+
|
|
73
|
+
if defined?(DEBUG)
|
|
74
|
+
import_global :debug_flag
|
|
75
|
+
import_global :x_scope_count
|
|
76
|
+
end # defined?(DEBUG)
|
|
77
|
+
|
|
78
|
+
import_global :action
|
|
79
|
+
import_global :inp1
|
|
80
|
+
import_global :inp2
|
|
81
|
+
import_global :noun
|
|
82
|
+
import_global :second
|
|
83
|
+
import_global :keep_silent
|
|
84
|
+
import_global :reason_code
|
|
85
|
+
import_global :receive_action
|
|
86
|
+
|
|
87
|
+
import_global :parser_trace
|
|
88
|
+
import_global :parser_action
|
|
89
|
+
import_global :parser_one
|
|
90
|
+
import_global :parser_two
|
|
91
|
+
import_global :parser_inflection
|
|
92
|
+
import_global :actor
|
|
93
|
+
import_global :actors_location
|
|
94
|
+
import_global :meta
|
|
95
|
+
import_global :multiflag
|
|
96
|
+
import_global :toomany_flag
|
|
97
|
+
|
|
98
|
+
import_global :special_word
|
|
99
|
+
import_global :special_number
|
|
100
|
+
import_global :parsed_number
|
|
101
|
+
import_global :consult_from
|
|
102
|
+
import_global :consult_words
|
|
103
|
+
import_global :notheld_mode
|
|
104
|
+
import_global :onotheld_mode
|
|
105
|
+
import_global :not_holding
|
|
106
|
+
import_global :etype
|
|
107
|
+
import_global :best_etype
|
|
108
|
+
import_global :nextbest_etype
|
|
109
|
+
import_global :pcount
|
|
110
|
+
import_global :pcount2
|
|
111
|
+
import_global :parameters
|
|
112
|
+
import_global :nsns
|
|
113
|
+
import_global :special_number1
|
|
114
|
+
import_global :special_number2
|
|
115
|
+
import_global :params_wanted
|
|
116
|
+
import_global :inferfrom
|
|
117
|
+
import_global :inferword
|
|
118
|
+
import_global :dont_infer
|
|
119
|
+
import_global :action_to_be
|
|
120
|
+
import_global :action_reversed
|
|
121
|
+
import_global :advance_warning
|
|
122
|
+
import_global :found_ttype
|
|
123
|
+
import_global :found_tdata
|
|
124
|
+
import_global :token_filter
|
|
125
|
+
import_global :lookahead
|
|
126
|
+
import_global :multi_mode
|
|
127
|
+
import_global :multi_wanted
|
|
128
|
+
import_global :multi_had
|
|
129
|
+
import_global :multi_context
|
|
130
|
+
import_global :indef_mode
|
|
131
|
+
import_global :indef_type
|
|
132
|
+
import_global :indef_wanted
|
|
133
|
+
import_global :indef_guess_p
|
|
134
|
+
import_global :indef_owner
|
|
135
|
+
import_global :indef_cases
|
|
136
|
+
import_global :indef_possambig
|
|
137
|
+
import_global :indef_nspec_at
|
|
138
|
+
import_global :allow_plurals
|
|
139
|
+
import_global :take_all_rule
|
|
140
|
+
import_global :pronoun_word
|
|
141
|
+
import_global :pronoun_obj
|
|
142
|
+
import_global :scope_reason
|
|
143
|
+
import_global :scope_token
|
|
144
|
+
import_global :scope_error
|
|
145
|
+
import_global :scope_stage
|
|
146
|
+
import_global :ats_flag
|
|
147
|
+
import_global :ats_hls
|
|
148
|
+
import_global :placed_in_flag
|
|
149
|
+
import_global :number_matched
|
|
150
|
+
import_global :number_of_classes
|
|
151
|
+
import_global :match_length
|
|
152
|
+
import_global :match_from
|
|
153
|
+
import_global :bestguess_score
|
|
154
|
+
import_global :wn
|
|
155
|
+
import_global :num_words
|
|
156
|
+
import_global :verb_word
|
|
157
|
+
import_global :verb_wordnum
|
|
158
|
+
import_global :usual_grammar_after
|
|
159
|
+
import_global :oops_from
|
|
160
|
+
import_global :saved_oops
|
|
161
|
+
import_global :held_back_mode
|
|
162
|
+
import_global :hb_wn
|
|
163
|
+
import_global :short_name_case
|
|
164
|
+
|
|
165
|
+
if defined?(EnglishNaturalLanguage)
|
|
166
|
+
import_global :itobj
|
|
167
|
+
import_global :himobj
|
|
168
|
+
import_global :herobj
|
|
169
|
+
import_global :old_itobj
|
|
170
|
+
import_global :old_himobj
|
|
171
|
+
import_global :old_herobj
|
|
172
|
+
end # defined?(EnglishNaturalLanguage)
|
|
173
|
+
|
|
174
|
+
# ==============================================================================
|