package query-json

  1. Overview
  2. Docs

Module AstSource

Sourcetype literal =
  1. | Bool of bool
  2. | String of string
  3. | Number of float
  4. | Null
Sourcetype builtin =
  1. | Add
  2. | Absolute
Sourcetype op =
  1. | Add
  2. | Subtract
  3. | Multiply
  4. | Divide
  5. | Modulo
  6. | Equal
  7. | Not_equal
  8. | Greater_than
  9. | Less_than
  10. | Greater_than_or_equal
  11. | Less_than_or_equal
  12. | And
  13. | Or
Sourcetype expression =
  1. | Identity
  2. | Empty
  3. | Pipe of expression * expression
  4. | Comma of expression * expression
  5. | Literal of literal
  6. | List of expression list
  7. | Object of (expression * expression option) list
  8. | Walk of expression
  9. | Transpose of expression
  10. | Key of string
  11. | Optional of expression
  12. | Has of expression
  13. | Keys
  14. | Floor
  15. | Sqrt
  16. | Type
  17. | Sort
  18. | Min
  19. | Max
  20. | Unique
  21. | Reverse
  22. | Explode
  23. | Implode
  24. | Any
  25. | All
  26. | In of expression
  27. | Recurse
  28. | Recurse_with of expression * expression
  29. | Recurse_down
  30. | To_entries
  31. | To_string
  32. | Tostring
  33. | From_entries
  34. | With_entries
  35. | Nan
  36. | Is_nan
  37. | Index of int list
  38. | Iterator
  39. | Range of int * int option * int option
  40. | Flatten of int option
  41. | Head
  42. | Tail
  43. | Map of expression
  44. | Slice of int option * int option
  45. | Flat_map of expression
  46. | Reduce of expression
  47. | Select of expression
  48. | Sort_by of expression
  49. | Group_by of expression
  50. | Unique_by of expression
  51. | Min_by of expression
  52. | Max_by of expression
  53. | All_with_condition of expression
  54. | Any_with_condition of expression
  55. | Some_ of expression
  56. | Find of expression
  57. | Operation of expression * op * expression
  58. | Length
  59. | Contains of expression
  60. | Test of string
  61. | To_number
  62. | Tonumber
  63. | Starts_with of expression
  64. | Startwith of expression
  65. | Ends_with of expression
  66. | Endwith of expression
  67. | Index_of of expression
  68. | Rindex_of of expression
  69. | Split of expression
  70. | Join of expression
  71. | Path of expression
  72. | If_then_else of expression * expression * expression
  73. | While of expression * expression
  74. | Until of expression * expression
  75. | Break
  76. | Not
  77. | Fun of builtin