You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/parameterized_goals.md
+8-10
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ No. `@args` will be only allowed in pos=3. All items afterwards are considered a
46
46
47
47
## Q. Shall we restrict the param name to Name123? `[A-Z][A-Za-z0-9_]*`
48
48
49
-
This might be good idea / convention.
49
+
Yes, this is a good idea / convention.
50
50
51
51
## Q. Can we make parameterized goals resolution during parsing? We might need to know the number of params for a goal which is not available yet, since goal may come later.
52
52
@@ -63,31 +63,29 @@ I.e. when `@args` is at pos=3
63
63
No
64
64
65
65
## Q. Allow listing PG?
66
-
No.
67
-
What about “instantiated” goals?
66
+
No. But we list “instantiated” goals instead.
68
67
69
68
## Q. Loops detection.
70
-
Based on goal name only? I.e. disallow depending PG on itself in any way.
69
+
Based on goal name only. I.e. disallow depending PG on itself in any way.
71
70
72
71
## Q. What can be `@args VAR`?
73
72
Only:
74
-
- what’s in `@define`
73
+
- what’s in `@define` (not now, maybe in future)
75
74
- any VAR in `@params` of this goal
76
-
All other cases must cause error.
75
+
- All other cases must cause error.
77
76
78
77
## Q. Mechanism for "instantiation"
79
78
80
79
Also here. Need to adjust `-d` option. Should list instantiated goals in form
81
80
82
-
-`pg1 @args 'hello'`
83
-
-`pg2 @args 'hello' $'with \''`
81
+
-`pg1@hello`
82
+
-`$'pg2@hello@with \''`
84
83
-`nonpg`
85
84
86
85
1. Build tree no-params : detect loops
87
86
2. Build tree non-instantiated
88
87
3. Instantiate. How?
89
-
90
-
On encounter `@depends_on` generate instantiated? But this needs to go in-depth.
88
+
- On encounter `@depends_on` generate instantiated. This needs to go in-depth.
0 commit comments