::CLASS flatclause PUBLIC

a clause flattened for parsing
Definition at line 1674 of rexxprogram.cls

Public Methods

line column index2vector (index)
convert an index position of the flat clause into a line/column vector
  init (clause, src)
no comment

Public Attributes

  clause
the clause
  flat
the clause flattened, with string literals set to '*'
  linelengths
lengths of each line in the clause

Instantiated by

documents.cls line 586
htmlrexxsource.cls line 126
htmlrexxsource.cls line 261
htmlutil.cls line 170
htmlutil.cls line 194
htmlutil.cls line 207
rexxprogram.cls line 510

Feature Detail

::ATTRIBUTE clause
the clause
Definition at line 1675 of rexxprogram.cls
Dynamically referenced by
rexxprogram.cls line 1683 "self~clause = clause"
rexxprogram.cls line 1713 "return self~clause~startline index + self~clause~startcol -1"
rexxprogram.cls line 1713 "return self~clause~startline index + self~clause~startcol -1"
rexxprogram.cls line 1728 "return line + self~clause~startline col"

::ATTRIBUTE linelengths
lengths of each line in the clause
Definition at line 1676 of rexxprogram.cls
Dynamically referenced by
rexxprogram.cls line 1684 "self~linelengths = .queue~new"
rexxprogram.cls line 1688 "self~linelengths~queue(i~length)"
rexxprogram.cls line 1711 "if index <= self~linelengths[1]"
rexxprogram.cls line 1718 "do i over self~linelengths"

::ATTRIBUTE flat
the clause flattened, with string literals set to '*'
Definition at line 1677 of rexxprogram.cls
Dynamically referenced by
documents.cls line 588 "self~tokenized = tokenizer~toke(self~flatclause~flat)"
htmlrexxsource.cls line 158 "when fc~flat~words = 1"
htmlrexxsource.cls line 161 "x2 = fc~flat~length - 1"
htmlrexxsource.cls line 169 "x2 = fc~flat~wordindex(1) + fc~flat~word(1)~length"
htmlrexxsource.cls line 169 "x2 = fc~flat~wordindex(1) + fc~flat~word(1)~length"
htmlrexxsource.cls line 173 "x1 = fc~flat~wordindex(2) - 1"
htmlrexxsource.cls line 174 "x2 = x1 + fc~flat~word(2)~length"
htmlrexxsource.cls line 185 "col~fcaddpost(fc, fc~flat~length, '</span>')"
htmlrexxsource.cls line 190 "if fc~flat~word(2)~translate = 'PROCEDURE'"
htmlrexxsource.cls line 192 "x1 = fc~flat~wordindex(2)"
htmlrexxsource.cls line 193 "x2 = x1 + fc~flat~word(2)~length - 1"
htmlrexxsource.cls line 197 "if fc~flat~word(3)~translate = 'EXPOSE'"
htmlrexxsource.cls line 199 "x1 = fc~flat~wordindex(3)"
htmlrexxsource.cls line 200 "x2 = x1 + fc~flat~word(3)~length - 1"
htmlrexxsource.cls line 210 "do j = 3 to fc~flat~words"
htmlrexxsource.cls line 211 "w = fc~flat~word(j)"
htmlrexxsource.cls line 214 "x1 = fc~flat~wordindex(j)"
htmlrexxsource.cls line 215 "x2 = x1 + fc~flat~word(j)~length - 1"
htmlrexxsource.cls line 223 "x1 = fc~flat~wordindex(j)"
htmlrexxsource.cls line 224 "x2 = x1 + fc~flat~word(j)~length - 1"
htmlrexxsource.cls line 235 "do j = 3 to fc~flat~words"
htmlrexxsource.cls line 236 "w = fc~flat~word(j)"
htmlrexxsource.cls line 239 "x1 = fc~flat~wordindex(j)"
htmlrexxsource.cls line 240 "x2 = x1 + fc~flat~word(j)~length - 1"
htmlrexxsource.cls line 262 "do j = 1 to fc~flat~words"
htmlrexxsource.cls line 263 "w = fc~flat~word(j)"
htmlrexxsource.cls line 270 "x1 = fc~flat~wordindex(j)"
htmlutil.cls line 171 "tagtext = '"<i>'self~htmlizestring(fc~flat)'</i>"'"
htmlutil.cls line 195 "tagtext = '"<i>'self~htmlizestring(fc~flat)'</i>"'"
htmlutil.cls line 208 "tagtext = '"<i>'self~htmlizestring(fc~flat)'</i>"'"
rexxprogram.cls line 511 "totwords = fc~flat~words"
rexxprogram.cls line 513 "upcase = fc~flat~translate"
rexxprogram.cls line 1685 "self~flat = ''"
rexxprogram.cls line 1689 "self~flat = self~flat||i"
rexxprogram.cls line 1689 "self~flat = self~flat||i"
rexxprogram.cls line 1691 "if self~flat~right(1) = ','"
rexxprogram.cls line 1693 "self~flat = self~flat~left(self~flat~length-1)' '"
rexxprogram.cls line 1693 "self~flat = self~flat~left(self~flat~length-1)' '"
rexxprogram.cls line 1693 "self~flat = self~flat~left(self~flat~length-1)' '"
rexxprogram.cls line 1707 "if index > self~flat~length"
rexxprogram.cls line 1708 "raise SYNTAX 93 ARRAY('index is' index 'line length is' self~flat~length)"

::METHOD init
Parameters
clause - the clause
src - queue of source lines corrersponding to clause
Definition at line 1681 of rexxprogram.cls

::METHOD index2vector
convert an index position of the flat clause into a line/column vector
in the clause
Parameters
index
Returns
line column
Definition at line 1701 of rexxprogram.cls
Dynamically referenced by
colourable.cls line 76 "parse value fc~index2vector(index) with line col"
colourable.cls line 81 "parse value fc~index2vector(index) with line col"
rexxprogram.cls line 635 "parse value fc~index2vector(split) with endline endcol"


Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 31 Aug 2010 05:20:33 for RexxLiterate by rexxliterate  0.0.1