@indra.ai/deva.feecting 0.14.2 → 0.14.4

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.
@@ -9,5 +9,115 @@
9
9
 
10
10
  describe: {{profile.describe}}
11
11
  hashtags: {{profile.hashtags}}
12
+ owner: {{profile.owner}}
13
+ creator: {{profile.creator}}
14
+
15
+ ## Line Labels
16
+ p: The first and most basic part of the feecting language is the line labels. There are standard line labels like talk or p that create events and formatting. Also dynamic custom line labels can be used.
17
+
18
+ ## Containers
19
+ p: Containers establish the main outer structure of the code components where several main containers can be in a script but Containers can contain Blocks but not other Containers.
20
+ ::BEGIN:[KEY]:[TRANSPORT]
21
+ // feecting code
22
+ ::END:[KEY]:[TRANSPORT]
23
+
24
+ ## Boxes
25
+ p: Boxes are isolated, and can be nested inside Containers or other Blocks to create structure and heiarcharcy.
26
+
27
+ ::begin:[key]:[opts]:[transport]
28
+ // feecting code
29
+ ::end:[key]:[opts]:[transport]
30
+
31
+ ## Variables
32
+
33
+ var: test = memory variables are with "var"
34
+ set: test = temporary variables are with "set"
35
+ const: test = constant variables are done with "const"
36
+
37
+ ## Structures
38
+ // Arrays
39
+ array: theArray [
40
+ "array item 1",
41
+ "array item 2",
42
+ 0,
43
+ ]
44
+ // Objects
45
+ object: theObject {
46
+ key: value
47
+ }
48
+
49
+ ## Control Logic
50
+
51
+ if: condition (==|!=|<<|>>) expectation
52
+ elseif: secondary (is|not|equals) expectation
53
+ else: conditional
54
+ finally: when everything is done.
55
+
56
+ switch: condition
57
+ case: value
58
+ case: value
59
+ default: value
60
+
61
+ ## Iteration
62
+ p: #feecting provides several methods for looping over a lists, arrays, objects, and the while true iteration loop. This provides a simplified way to create complex loops over a list of values, and array if indees or an object of key value pairs.
63
+
64
+ ::begin:code:iteration
65
+ // for iteration loop an array
66
+ for: (item, index) in array {
67
+ // code to execute inside for loop
68
+ }
69
+ // for iteration to loop over a list
70
+ for: item in list {
71
+ // code to execute inside for loop
72
+ }
73
+
74
+ for: (key, value) of object {
75
+ // code to execute inside loop
76
+ }
77
+
78
+ // While iteration loop
79
+ let: x = true
80
+ while: x {
81
+ if: x >= 10 {
82
+ set: x = false
83
+ }
84
+ x = x++
85
+ }
86
+ ::end:code:iteration
87
+ ## Error Control
88
+ p: #feecting provides a clean way to manage errors in the language where try, catch, and finally are situated in the line label architecture that integrates directly into the Deva Core Error Management Infrastructure.
89
+
90
+ ::begin:code:error
91
+ try: {
92
+ a block of code to execute in a string or bracket container.
93
+ }
94
+ catch: err {
95
+ type of exception to catch. ie: Any, Socket, Etc.
96
+ }
97
+ finally: {
98
+ after try/catch completes
99
+ }
100
+ ::end:code:error
101
+
102
+ ## Talking
103
+ p: #feecting most unique feature is the talk command that allows the system to become the Code Talker where a feecting script can while processing logic or code asychronously talk to other Agents and Entities in the system.
104
+
105
+ ::begin:code:talking
106
+ // This talk get's a uid from the License Deva
107
+ `talk: #license uid`
108
+ // This talk get's the Veda Hymn 09003
109
+ `talk: #veda hymn:09003`
110
+ // This talk get's the main security help content.
111
+ `talk: #security help`
112
+ ::end:code:talking
113
+
114
+ ## Dynmaic UID
115
+ // generate a dynamic uid when the help file is rendered.
116
+ `talk: #feecting uid`
117
+
118
+ ## License
119
+ // this talk event inserts the license into the main help file.
120
+ `talk: #feecting help main:license`
121
+
12
122
  copyright: {{profile.copyright}}
13
123
  ::END:MAIN
@@ -81,8 +81,10 @@ for: (key, value) of object {
81
81
  // While iteration loop
82
82
  let: x = true
83
83
  while: x {
84
- if: x >= 10
84
+ if: x >= 10 {
85
85
  set: x = false
86
+ }
87
+ x = x++
86
88
  }
87
89
  ::end:code:iteration
88
90
  #### Error Control
@@ -114,11 +116,11 @@ p: #feecting most unique feature is the talk command that allows the system to b
114
116
 
115
117
  ## Dynmaic UID
116
118
  // generate a dynamic uid when the help file is rendered.
117
- talk: #feecting uid
119
+ `talk: #feecting uid`
118
120
 
119
121
  ## License
120
122
  // this talk event inserts the license into the main help file.
121
- talk: #feecting help main:license
123
+ `talk: #feecting help main:license`
122
124
 
123
125
  ::begin:hidden
124
126
  #color = {{profile.color}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "63817777011592573888",
3
3
  "name": "@indra.ai/deva.feecting",
4
- "version": "0.14.2",
4
+ "version": "0.14.4",
5
5
  "license": "VLA:63817777011592573888 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "63817777011592573888",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "homepage": "https://indra.ai",
60
60
  "dependencies": {
61
- "@indra.ai/deva": "^1.33.0",
61
+ "@indra.ai/deva": "^1.35.0",
62
62
  "needle": "^3.2.0"
63
63
  },
64
64
  "data": {