<commit_before>.. -*- rst -*-

.. highlightlang:: none

grn_expr
========

TODO...<commit_msg>doc: document summary of grn_expr<commit_after>.. -*- rst -*-

.. highlightlang:: none

grn_expr
========

`grn_expr` is an :c:type:`grn_obj` that represents an expression. Here
is a list of what expression can do:

  * Expression can apply some operations to a record by
    :c:function:`grn_expr_exec`.
  * Expression can represents search condition. :c:function:`grn_table_select`
    can select records that match against the search condition represented
    by expression.

There are two string representations of expression:

  * :doc:`/reference/grn_expr/query_syntax`
  * :doc:`/reference/grn_expr/script_syntax`

:c:function:`grn_expr_parse` parses string represented expression and
appends the parsed expression to another expression.

Example
-------

TODO...
{'fraction_non_alphanumeric': 0.12384259259259259, 'fraction_numerical': 0.0, 'mean_word_length': 4.148809523809524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6597028', 'n_tokens_mistral': 260, 'n_tokens_neox': 255, 'n_words': 83}