lib/shift-lang/parser/keyword_parser.rb in shift-lang-0.1.1 vs lib/shift-lang/parser/keyword_parser.rb in shift-lang-0.1.2
- old
+ new
@@ -46,7 +46,16 @@
rule(:integer_keyword) { str('integer') }
rule(:integer_cast_keyword) { str('int') }
+ rule(:keyword) {
+ read_keyword | write_keyword | write_file_keyword | redirect_keyword |
+ all_keyword | new_keyword | find_keyword | where_keyword | find_by_id_keyword | update_keyword | delete_keyword |
+ if_keyword | else_keyword | for_keyword | in_keyword | while_keyword |
+ get_keyword | post_keyword |
+ model_keyword | string_keyword | integer_keyword |
+ integer_cast_keyword
+ }
+
end
end
\ No newline at end of file