Advanced Capstone 3.5 Define a function on our local process called `.perm.parseQuery`

Hi all, 

I am currently working Advanced capstone section 3. I was able to pass all the questions in section except 3.5  - **3.5 Define a function on our local process called .perm.parseQuery:**

 the result was able to return as it stated in the example, and the code was running fine, however it still stating “fail” for this exercise

Does anyone know how to resolve this error or would able to identify something missing that causing it failed?

Question: 

This function should:
* take one parameter x which is a string
* parse this string to return the first element of the parse tree

such that:

.perm.parseQuery[".f1.checkSensor[raceTab;lapTab]"]  
// returns  
`.f1.checkSensor

 

.perm.parseQuery[".fia.getSummaryReport[`today]"]  
// returns  
`.fia.getSummaryReport

 

.perm.parseQuery["select from tab"]  
// returns  
?  
``

 

Here is my code that i have used below 

 

.perm.parseQuery: {string first parse x}  
hdbH (set;`.perm.parseQuery;.perm.parseQuery)

 

 

 

 

 

Thanks 

Hi ytang,

Is the function actually defined and running on the remote process?

Worth checking what the test cases are using and running those on the remote process to see what’s missing.

Hope this helps