109 lines
2.3 KiB
Plaintext
109 lines
2.3 KiB
Plaintext
==================
|
|
Table Declaration
|
|
==================
|
|
|
|
table messages numbers [
|
|
['hiya' 42]
|
|
['foo' 57]
|
|
['bar' 99.99]
|
|
]
|
|
|
|
---
|
|
|
|
(root
|
|
(block
|
|
(statement
|
|
(expression
|
|
(value
|
|
(table
|
|
(parameter_list
|
|
(identifier)
|
|
(identifier))
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(integer))))))
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(integer))))))
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(float)))))))))))))))
|
|
|
|
==================
|
|
Table Access
|
|
==================
|
|
|
|
select <number> from foobar {
|
|
text == 'answer'
|
|
}
|
|
|
|
---
|
|
|
|
(root
|
|
(block
|
|
(statement
|
|
(select
|
|
(parameter_list
|
|
(identifier))
|
|
(expression
|
|
(identifier))
|
|
(block
|
|
(statement
|
|
(expression
|
|
(logic
|
|
(expression
|
|
(identifier))
|
|
(logic_operator)
|
|
(expression
|
|
(value
|
|
(string)))))))))))
|
|
|
|
==================
|
|
Table Insert
|
|
==================
|
|
|
|
insert into foobar [
|
|
['bob was here', 0]
|
|
]
|
|
|
|
---
|
|
|
|
(root
|
|
(block
|
|
(statement
|
|
(insert
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(list
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(integer)))))))))))))
|