about summary refs log blame commit diff stats
path: root/cpp/.traces/parse_multiple_ingredients
blob: c94b33e72c7b7aa27574f77f805d86dc8732fcb2 (plain) (tree)
1
2
3
4
5
                       



                                                                                     
parse/0: instruction: 1
parse/0:   ingredient: {name: "23", value: 0, type: 0, properties: ["23": "literal"]}
parse/0:   ingredient: {name: "4", value: 0, type: 1, properties: ["4": "integer"]}
parse/0:   product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]}
parse/0:   product: {name: "2", value: 0, type: 1, properties: ["2": "integer"]}
s='oid'>7fe51696 ^
34bfb32e ^
adfea091
8a6f5eab ^



adfea091
adfea091
bd627dc4 ^








7fe51696 ^


34bfb32e ^




a0de7f95 ^

8a6f5eab ^
2887ca25 ^
adfea091
adfea091
a0de7f95 ^
34bfb32e ^





adfea091
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
                   
                 
 
                  

                                                           

            
                

                       
                                                      
           



                              




                                



                 

                                            
   
 

                    
                                  
                                
 
             
 



                                                        
                                              
 








                                                 


                                        




                            

                      
                              
               
                          
 
                                





                                            
 
#!/usr/bin/ruby -Ku
version = '0.2.3'

require 'pathname'
$: << MYDIR = File.dirname(Pathname.new(__FILE__).realpath)

EVIL = false

if ARGV.size > 0
	case ARGV.first
	when '-k'
		exec "killall -9 #{File.basename($0)}"
	end
	pwd = ARGV.first
	if pwd =~ /^file:\/\//
		pwd = $'
	end

	unless File.exists?(pwd)
		pwd = nil
	end

else
	pwd = nil
end

for file in Dir.glob "#{MYDIR}/code/**/*.rb"
	require file [MYDIR.size + 1 ... -3]
end

load 'data/types.rb'
load 'data/apps.rb'
load 'data/colorscheme/default.rb'
load 'data/screensaver/clock.rb'

include Debug

Debug.setup( :name   => 'nyuron',
             :stream => File.open('/tmp/errorlog', 'a'),
             :level  => 3 )

ERROR_STREAM = File.open('/tmp/errorlog', 'a')

if pwd and !ARGV.empty? and !File.directory?(pwd)
	file = Directory::Entry.new(pwd)
	file.get_data
	Action.run(RunContext.new(file, 0, 'c'))
	exit
end

include CLI

Signal.trap(Scheduler::UPDATE_SIGNAL) do
	Fm.refresh
end

begin
	Fm.initialize( pwd )
	Fm.main_loop
ensure
	log "exiting!"
	log ""
	closei if CLI.running?
	Fm.dump
	ERROR_STREAM.close

	# Kill all other threads
	for thr in Thread.list
		unless thr == Thread.current
			thr.kill
		end
	end
end