expressir 0.1.0 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +46 -0
  3. data/.github/workflows/release.yml +74 -0
  4. data/.gitignore +3 -0
  5. data/.gitmodules +3 -0
  6. data/Gemfile +2 -0
  7. data/Rakefile +20 -0
  8. data/demo.rb +18 -0
  9. data/exe/generate-parser +48 -0
  10. data/expressir.gemspec +5 -2
  11. data/ext/express-parser/antlrgen/Express.interp +532 -0
  12. data/ext/express-parser/antlrgen/Express.tokens +190 -0
  13. data/ext/express-parser/antlrgen/ExpressBaseListener.cpp +7 -0
  14. data/ext/express-parser/antlrgen/ExpressBaseListener.h +623 -0
  15. data/ext/express-parser/antlrgen/ExpressBaseVisitor.cpp +7 -0
  16. data/ext/express-parser/antlrgen/ExpressBaseVisitor.h +816 -0
  17. data/ext/express-parser/antlrgen/ExpressLexer.cpp +1169 -0
  18. data/ext/express-parser/antlrgen/ExpressLexer.h +85 -0
  19. data/ext/express-parser/antlrgen/ExpressLexer.interp +534 -0
  20. data/ext/express-parser/antlrgen/ExpressLexer.tokens +190 -0
  21. data/ext/express-parser/antlrgen/ExpressListener.cpp +7 -0
  22. data/ext/express-parser/antlrgen/ExpressListener.h +616 -0
  23. data/ext/express-parser/antlrgen/ExpressParser.cpp +17284 -0
  24. data/ext/express-parser/antlrgen/ExpressParser.h +3696 -0
  25. data/ext/express-parser/antlrgen/ExpressVisitor.cpp +7 -0
  26. data/ext/express-parser/antlrgen/ExpressVisitor.h +422 -0
  27. data/ext/express-parser/express_parser.cpp +17931 -0
  28. data/ext/express-parser/extconf.rb +34 -0
  29. data/lib/expressir/express.rb +0 -1
  30. data/lib/expressir/express_exp/formatter.rb +1450 -0
  31. data/lib/expressir/express_exp/parser.rb +36 -0
  32. data/lib/expressir/express_exp/visitor.rb +2451 -0
  33. data/lib/expressir/model.rb +65 -0
  34. data/lib/expressir/model/attribute.rb +27 -0
  35. data/lib/expressir/model/constant.rb +17 -0
  36. data/lib/expressir/model/entity.rb +46 -0
  37. data/lib/expressir/model/enumeration_item.rb +11 -0
  38. data/lib/expressir/model/expressions/aggregate_initializer.rb +13 -0
  39. data/lib/expressir/model/expressions/aggregate_item.rb +15 -0
  40. data/lib/expressir/model/expressions/attribute_reference.rb +15 -0
  41. data/lib/expressir/model/expressions/binary_expression.rb +40 -0
  42. data/lib/expressir/model/expressions/call.rb +15 -0
  43. data/lib/expressir/model/expressions/entity_constructor.rb +15 -0
  44. data/lib/expressir/model/expressions/group_reference.rb +15 -0
  45. data/lib/expressir/model/expressions/index_reference.rb +17 -0
  46. data/lib/expressir/model/expressions/interval.rb +21 -0
  47. data/lib/expressir/model/expressions/query_expression.rb +26 -0
  48. data/lib/expressir/model/expressions/simple_reference.rb +13 -0
  49. data/lib/expressir/model/expressions/unary_expression.rb +19 -0
  50. data/lib/expressir/model/function.rb +62 -0
  51. data/lib/expressir/model/identifier.rb +9 -0
  52. data/lib/expressir/model/interface.rb +18 -0
  53. data/lib/expressir/model/literals/binary.rb +13 -0
  54. data/lib/expressir/model/literals/integer.rb +13 -0
  55. data/lib/expressir/model/literals/logical.rb +17 -0
  56. data/lib/expressir/model/literals/real.rb +13 -0
  57. data/lib/expressir/model/literals/string.rb +15 -0
  58. data/lib/expressir/model/parameter.rb +17 -0
  59. data/lib/expressir/model/procedure.rb +60 -0
  60. data/lib/expressir/model/renamed_ref.rb +13 -0
  61. data/lib/expressir/model/repository.rb +19 -0
  62. data/lib/expressir/model/rule.rb +62 -0
  63. data/lib/expressir/model/schema.rb +67 -0
  64. data/lib/expressir/model/scope.rb +17 -0
  65. data/lib/expressir/model/statements/alias.rb +26 -0
  66. data/lib/expressir/model/statements/assignment.rb +15 -0
  67. data/lib/expressir/model/statements/call.rb +15 -0
  68. data/lib/expressir/model/statements/case.rb +17 -0
  69. data/lib/expressir/model/statements/case_action.rb +15 -0
  70. data/lib/expressir/model/statements/compound.rb +13 -0
  71. data/lib/expressir/model/statements/escape.rb +8 -0
  72. data/lib/expressir/model/statements/if.rb +17 -0
  73. data/lib/expressir/model/statements/null.rb +8 -0
  74. data/lib/expressir/model/statements/repeat.rb +34 -0
  75. data/lib/expressir/model/statements/return.rb +13 -0
  76. data/lib/expressir/model/statements/skip.rb +8 -0
  77. data/lib/expressir/model/subtype_constraint.rb +27 -0
  78. data/lib/expressir/model/type.rb +24 -0
  79. data/lib/expressir/model/types/aggregate.rb +17 -0
  80. data/lib/expressir/model/types/array.rb +21 -0
  81. data/lib/expressir/model/types/bag.rb +17 -0
  82. data/lib/expressir/model/types/binary.rb +15 -0
  83. data/lib/expressir/model/types/boolean.rb +8 -0
  84. data/lib/expressir/model/types/enumeration.rb +19 -0
  85. data/lib/expressir/model/types/generic.rb +13 -0
  86. data/lib/expressir/model/types/generic_entity.rb +13 -0
  87. data/lib/expressir/model/types/integer.rb +8 -0
  88. data/lib/expressir/model/types/list.rb +19 -0
  89. data/lib/expressir/model/types/logical.rb +8 -0
  90. data/lib/expressir/model/types/number.rb +8 -0
  91. data/lib/expressir/model/types/real.rb +13 -0
  92. data/lib/expressir/model/types/select.rb +21 -0
  93. data/lib/expressir/model/types/set.rb +17 -0
  94. data/lib/expressir/model/types/string.rb +15 -0
  95. data/lib/expressir/model/unique.rb +15 -0
  96. data/lib/expressir/model/variable.rb +17 -0
  97. data/lib/expressir/model/where.rb +15 -0
  98. data/lib/expressir/version.rb +1 -1
  99. data/original/examples/syntax/remark.exp +145 -0
  100. data/original/examples/syntax/remark_formatted.exp +174 -0
  101. data/original/examples/syntax/syntax.exp +310 -0
  102. data/original/examples/syntax/syntax_formatted.exp +1187 -0
  103. data/spec/expressir/express_exp/ap233_spec.rb +22 -0
  104. data/spec/expressir/express_exp/format_remark_spec.rb +28 -0
  105. data/spec/expressir/express_exp/format_syntax_spec.rb +28 -0
  106. data/spec/expressir/express_exp/parse_remark_spec.rb +345 -0
  107. data/spec/expressir/express_exp/parse_syntax_spec.rb +2998 -0
  108. data/spec/expressir/model/find_spec.rb +110 -0
  109. metadata +139 -12
  110. data/.github/workflows/macos.yml +0 -38
  111. data/.github/workflows/ubuntu.yml +0 -56
  112. data/.github/workflows/windows.yml +0 -40

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.