Advertisement
Guest User

Genie syntax highlight

a guest
Feb 22nd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Genie 0.70 KB | None | 0 0
  1.  [indent=4]
  2.  //              valac      con.gs
  3.  
  4.  def raw_input (query : string? = null) : string?
  5.      if (query != null)
  6.          stdout.printf ("%s\n", query)
  7.      return stdin.read_line ()
  8.  
  9.  init
  10.      print "Hello. I am a Genie program."
  11.      var name = raw_input ("What's your name?")
  12.      print "well hello there, " + name + " ! "
  13.      print "yes Hello there , " + name + " ! "
  14.  
  15.      
  16.      print "2What's your name?"
  17.      var name2 = stdin.read_line()
  18.      print "2Hello   " + name2 + "22"
  19.      
  20.      //  stdin is a GLib.FileStream so you are using    valadoc.org/#!api=glib-2.0/GLib.FileStream.read_line    which doesn't take any arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement