summary refs log tree commit diff stats
path: root/README
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-18 16:23:31 +0200
committerhut <hut@lavabit.com>2010-06-18 16:23:31 +0200
commitac226d23ba8b60f7f47805819761f18b1a0a43ad (patch)
treee44ab85aeb4e6907da9e2f3951b813567a31099a /README
parentb289f6796ef213a83595db77c06b7586cdbcb730 (diff)
downloadranger-ac226d23ba8b60f7f47805819761f18b1a0a43ad.tar.gz
Don't write bytecode with --clean switch
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions
>
978803c5 ^
f24eeaab ^


f24eeaab ^
e78ff7b0 ^
4a48bedc ^




f24eeaab ^

e78ff7b0 ^
f24eeaab ^
01ce563d ^
f24eeaab ^
01ce563d ^
f24eeaab ^


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

                                          

             
                         
                                                                                       
                         
                 
                                    


                                     
                 
                        




                                              

        
                                    
              
                                               
                           
                                


                           
# example program: reading a URL over HTTP

def main [
  local-scope
  $print [aaa] 10/newline
  google:&:source:char <- start-reading-from-network null/real-resources, [google.com/]
  $print [bbb] 10/newline
  n:num <- copy 0
  buf:&:buffer:char <- new-buffer 30
  {
    c:char, done?:bool <- read google
    break-if done?
    n <- add n, 1
    buf <- append buf, c
    {
      _, a:num <- divide-with-remainder n, 100
      break-if a
      $print n 10/newline
    }
    loop
  }
  result:text <- buffer-to-array buf
  open-console
  clear-screen null/screen  # non-scrolling app
  len:num <- length *result
  print null/real-screen, result
  wait-for-some-interaction
  close-console
]