117 lines
2.9 KiB
Plaintext
117 lines
2.9 KiB
Plaintext
================================================================================
|
|
Simple Indexes
|
|
================================================================================
|
|
|
|
dust_data:1:name
|
|
|
|
creature:total_clams
|
|
|
|
foobar:1:42
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(index
|
|
(expression
|
|
(index
|
|
(expression
|
|
(identifier))
|
|
(expression
|
|
(value
|
|
(integer)))))
|
|
(expression
|
|
(identifier)))))
|
|
(statement
|
|
(expression
|
|
(index
|
|
(expression
|
|
(identifier))
|
|
(expression
|
|
(identifier)))))
|
|
(statement
|
|
(expression
|
|
(index
|
|
(expression
|
|
(index
|
|
(expression
|
|
(identifier))
|
|
(expression
|
|
(value
|
|
(integer)))))
|
|
(expression
|
|
(value
|
|
(integer)))))))
|
|
|
|
================================================================================
|
|
Nested Indexes
|
|
================================================================================
|
|
|
|
[['answers' 'foobar'], 42, 666]:0:1:0..2
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(index
|
|
(expression
|
|
(index
|
|
(expression
|
|
(index
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(string))))))
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(expression
|
|
(value
|
|
(integer))))))
|
|
(expression
|
|
(value
|
|
(integer)))))
|
|
(expression
|
|
(value
|
|
(integer)))))
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(expression
|
|
(value
|
|
(integer)))))))
|
|
|
|
================================================================================
|
|
Function Call Index
|
|
================================================================================
|
|
|
|
x:(y):0
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(index
|
|
(expression
|
|
(index
|
|
(expression
|
|
(identifier))
|
|
(expression
|
|
(function_call
|
|
(expression
|
|
(identifier))))))
|
|
(expression
|
|
(value
|
|
(integer)))))))
|