Hash :
ed2cf4e6
Author :
Thomas de Grivel
Date :
2024-08-21T18:57:05
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
ptr = Facts.Cursor.next(cursor)
s = ?
p = ?
o = ?
cursor = Facts.with_tags(Facts.env_facts(), s, p, o)
ptr = Facts.Cursor.next(cursor)
Fact.from_ptr(ptr)
tuple = {?, ?, ?}
cursor = Facts.with_tuple(Facts.env_facts(), tuple)
ptr = Facts.Cursor.next(cursor)
tuple = {?, ?, ?}
cursor = Facts.with_tuple(Facts.env_facts(), tuple)
while (ptr = Facts.Cursor.next(cursor)) do
f = Fact.from_ptr(ptr)
puts((Tag) f.subject)
puts((Tag) f.predicate)
puts((Tag) f.object)
end
Facts.with_tags(Facts.env_facts(), ?, ?, ?, fn (fact) { puts(fact) })
Facts.with_tags(Facts.env_facts(), ?, ?, ?, fn (fact) { puts(fact); void })
Facts.with_tags(Facts.env_facts(), KC3, ?, ?, fn (fact) { puts(fact); void })
Facts.with_tags(Facts.env_facts(), KC3, :operator, ?, fn (fact) { puts(fact); void })
Facts.with_tags(Facts.env_facts(), KC3, :operator, ?, fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[KC3, :operator, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[KC3, ?, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[KC3, :load_time, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[?, :load_time, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[KC3, :operator, ?]], fn (fact) { puts(fact.object); void })
quote operator_eq(a, b)
Facts.with(Facts.env_facts(), [[KC3, :symbol_value, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[?, :symbol_value, ?]], fn (fact) { puts("#{fact.subject} = #{fact.object}"); void })
Facts.with(Facts.env_facts(), [[?, :symbol_value, ?]], fn (fact) { puts(fact.subject); puts(fact.object); void })
Facts.with(Facts.env_facts(), [[?, :symbol_value, object = ?], [object, ], fn (fact) { puts(fact.subject); puts(fact.object); void })
Facts.with(Facts.env_facts(), [[KC3, :operator, ?]], fn (fact) { puts(fact.object); void })
quote if true do if false do %KC3.Operator{} end end
if true do if true do %KC3.Operator{} end end
1 + 100000000000000000000000000000
1 +i 1
1 / 2
1/2
1.0 / 2
1.0 / 2 + 1/2
1.0 / 2 + 0.5
Facts.with(Facts.env_facts(), [[KC3, :operator, ?]], fn (fact) { puts(fact.object); void })
Facts.with(Facts.env_facts(), [[?, :operator, ?]], fn (fact) { puts(fact.subject); puts(fact.object); void })
Facts.with(Facts.env_facts(), [[plop, :operator, op], [op, :symbol_value, value]], fn (fact) { puts(value); void })
Facts.with(Facts.env_facts(), quote [[plop, :operator, op], [op, :symbol_value, value]], fn (fact) { puts(value); void })
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })
a
a <- 1
type(a)
(Ptr) a
a = ?
type(a)
(Ptr) a
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })
a <- 1
a = ?
a <- 1
a = ?
a <- 1
a
(Ptr) a
a <- 1
a <- 2
type(a)
a = ?
a <- 1
a
a = ?
a <- 1
a
a = ?
a <- 1
a = ?
a <- 1
a
a = ?
b = ?
c = ?
Facts.with_tags(Facts.env_facts(), a, b, c, fn (fact) { puts(a); puts(b); puts(c); void })