This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/master by this push:
     new deff4ff  Update NCIdlCompilerBase.scala
deff4ff is described below

commit deff4ff7bb9c10a180ab4e71e36bf2e08f89818d
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Fri Mar 19 22:55:05 2021 -0700

    Update NCIdlCompilerBase.scala
---
 .../nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
index 941ddf4..107a347 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
@@ -517,14 +517,14 @@ trait NCIdlCompilerBase {
         val fun = id.getText
     
         def ensureStack(min: Int): Unit = if (stack.size < min) throw 
rtMinParamNumError(min, fun)
-        def delMarker(): Unit = require(pop1() == stack.PLIST_MARKER)
+        def popMarker(): Unit = require(pop1() == stack.PLIST_MARKER)
         def arg[X](min: Int, f: () ⇒ X): X = {
             ensureStack(min + 1) // +1 for the frame marker.
             
             val x = f()
         
             // Make sure to pop up the parameter list stack frame marker.
-            delMarker()
+            popMarker()
             
             x
         }
@@ -533,7 +533,7 @@ trait NCIdlCompilerBase {
         def arg3(): (T, T, T) = arg(3, pop3)
         def arg1Tok(): T =
             if (stack.nonEmpty && stack.top == stack.PLIST_MARKER) {
-                delMarker()
+                popMarker()
             
                 () ⇒ Z(tok, 1)
             }
@@ -584,7 +584,7 @@ trait NCIdlCompilerBase {
             while (stack.nonEmpty && stack.top != stack.PLIST_MARKER)
                 dump += stack.pop()
 
-            delMarker()
+            popMarker()
 
             stack.push(() ⇒ {
                 val jl = new util.ArrayList[Object]()
@@ -811,7 +811,7 @@ trait NCIdlCompilerBase {
         }
 
         def z[Y](args: () ⇒ Y, body: Y ⇒ Z): Unit = { val x = args(); 
stack.push(() ⇒ body(x)) }
-        def z0(body: () ⇒ Z): Unit = { delMarker(); stack.push(() ⇒ body()) } 
+        def z0(body: () ⇒ Z): Unit = { popMarker(); stack.push(() ⇒ body()) }
 
         fun match {
             // Metadata access.

Reply via email to