Skip to content

Instantly share code, notes, and snippets.

@tra38
Last active October 4, 2015 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tra38/6e163d8241b83ae58301 to your computer and use it in GitHub Desktop.
Save tra38/6e163d8241b83ae58301 to your computer and use it in GitHub Desktop.
This file is an example of how Skynet can be used to generate a GG file with simulated recursive grammar
ARRAY = []
10.times do |number|
ARRAY << "$line#{number}"
end
puts %{line:= #{ARRAY.join(" ")} }
10.times do |number|
puts %{
line#{number}:=$greeting\\, $name! }
end
puts %{greeting:=hi,hello,howdy,ohai,oh hi,good morning,good day,guten morgen,good afternoon,bonjour,aloha
name:=Matthew,Mark,Luke,John,James,Judas Iscariot,Lucille Ball}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment