Logiweb(TM)

7.1.9.1 What syntax leads to

Prev Up Next Page 158 of 800 Search internet


Consider the following lgs source text named tiny.lgs:

"";;015B62F7DBABF8F0AEFE73374B36AE157FCF4F9390DFA1A68A89CCBB0806
""P tiny
""R base
""D 0
f ( " )
g (",",")
""B
f ( x ) + "abc"

If one issues the command

lgc tiny.lgs

then lgc(1) will parse and 'vectorize' tiny.lgs, leading to a Logiweb vector named vector.lgw in the rendering directory. Afterwards, lgc loads the vector, leading to a Logiweb rack file named rack.lgr in the rendering directory. Finally, lgc renders the page.

The vector of a page is a compact representation of the page suited for transmission over networks with limited bandwidth. Furthermore, vectors are suited for storing in untrusted repositories and for transmitting over untrusted networks because one can verify the authenticity of a vector if one knows the reference the page.

Expressed in decimal, the bytes of the vector of tiny.lgs above reads:

030 001 091 098 247  219 171 248 240 174
254 115 055 075 054  174 021 127 207 079
147 144 223 161 166  138 137 204 187 008
006 030 001 171 031  081 200 193 118 006
165 192 051 027 086  137 180 133 140 121
101 071 185 160 164  174 240 188 178 187
008 006 000 002 003  001 001 000 154 009
003 082 000 003 097  098 099

Expressed in decimal, the bytes of the reference of tiny.lgs above reads:

001 091 098 247 219  171 248 240 174 254
115 055 075 054 174  021 127 207 079 147
144 223 161 166 138  137 204 187 008 006

The structure of vectors and references is described in the following.

Prev Up Next Page 158 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05