interscript 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/interscript/isc/grammar/isc.parg +15 -2
- data/lib/interscript/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ab5030ae8a19781dfd812efd17ab36c275228af30e3d341c71baa6bfcf6d4bb
|
|
4
|
+
data.tar.gz: b3a4f5a776fc24e2163606e9ff7e198d73596b1e547ec2b7646103917beeb138
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00d409f86bb88601911028fcb7556be9460f4caba467469f3cb31043d52e7ab046e79502551468c3c8aeb28c5aa1e676d56aacb96dd0c5351544bc9585ff626a
|
|
7
|
+
data.tar.gz: 5b12d6d087ebf530d218feda404bd0ce71957cce7778417d2c5dd5f2c463aa4e3a5e0d978079beb5c7901e3917db3f3f9514c699a61ba37ff09b7f87d193a7c9
|
|
@@ -28,7 +28,16 @@ grammar InterscriptIsc version "0.1.0" {
|
|
|
28
28
|
ident_rest = %x41-5A / %x61-7A / %x30-39 / %x5F
|
|
29
29
|
identifier = (ident_first 0*ident_rest) as identifier
|
|
30
30
|
|
|
31
|
-
keyword
|
|
31
|
+
# keyword — WO19 G6 ruling: the six fn-literal names are reserved
|
|
32
|
+
# words (upcase/downcase/title_case were already here; reverse/strip/
|
|
33
|
+
# swapcase join). A bare fn name is never an alias reference or an
|
|
34
|
+
# alias(...) argument: item-position uses parse as fn_lit (function
|
|
35
|
+
# capture). `downcase = any(...)` still declares an alias NAMED
|
|
36
|
+
# downcase (alias_decl has no keyword guard), matching the ruby
|
|
37
|
+
# concern grammar; the name is simply not reachable via a bare
|
|
38
|
+
# reference. Keyword is used only under negative lookahead, where any
|
|
39
|
+
# matching branch suffices.
|
|
40
|
+
keyword = "parallel" / "sequence" / "stage" / "compose" / "separate" / "system" / "metadata" / "aliases" / "tests" / "notes" / "description" / "any_character" / "authority" / "dependency" / "run" / "sub" / "before" / "after" / "not_before" / "not_after" / "any" / "none" / "boundary" / "line_start" / "line_end" / "word_boundary" / "downcase" / "upcase" / "title_case" / "reverse" / "strip" / "swapcase" / "capture" / "maybe" / "some" / "ref" / "name" / "ruleset" / "use" / "override" / "languages" / "when"
|
|
32
41
|
|
|
33
42
|
# -- string literals ----------------------------------------------------
|
|
34
43
|
|
|
@@ -164,7 +173,11 @@ grammar InterscriptIsc version "0.1.0" {
|
|
|
164
173
|
|
|
165
174
|
separator_part = whitespace "separator" whitespace (item_atom as separator)
|
|
166
175
|
separate_directive = ("separate") as separate [(separator_part)]
|
|
167
|
-
|
|
176
|
+
# WO19 G6 ruling: all six fn-literal names are stage DIRECTIVES.
|
|
177
|
+
# downcase/upcase keep the keywordless bare form; reverse/strip/
|
|
178
|
+
# swapcase join with plain String semantics as the reference (ruby
|
|
179
|
+
# Stdlib::Functions: String#reverse / String#strip / String#swapcase).
|
|
180
|
+
case_directive = (("downcase") / ("upcase") / ("reverse") / ("strip") / ("swapcase")) as case
|
|
168
181
|
case_kwargs_part = whitespace (kwarg_list as case_kwargs)
|
|
169
182
|
title_case_directive = ("title_case") as case [(case_kwargs_part)]
|
|
170
183
|
string_case_directive = case_directive / title_case_directive
|
data/lib/interscript/version.rb
CHANGED