Giter Club home page Giter Club logo

Comments (2)

joshStillerman avatar joshStillerman commented on May 25, 2024

The syntax is described at:
http://www.mdsplus.org/index.php/Documentation:Users:Tree_syntax

Keith, can you write a parser for it ? I have an idea of how to make the search code much more simple.
-Josh

from mdsplus.

joshStillerman avatar joshStillerman commented on May 25, 2024

Given that some wildcard searches are broken, and there is ambiguity in the syntax for **** I propose we make the following syntax decisions:

[[treename::]tagname{.|:}]

Four single character punctuations

  1. '.' the child
  2. ':' the member
  3. '^' the parent
  4. '~' wildcard both member and child

and these can be tripled to mad breadth first searches

  1. '...' all children
  2. ':::' all members
  3. '~~~' all members and children
  4. '^^^' all parent

four of these is a syntax error

a special case would first translate *** to ~~~
(four of these is also a syntax error)

Some examples

a.b*.c  - a child named c of a child starting with b of a member or child called a 
a.b*:c - a member named c of a child starting with b of a member or child called a
a.b*~c -a member or child named c of a child starting with b of a member or child called a
a.b...c  - a child called c someplace under the child hierarchy under a.b
a.b:::c - a member called c someplace under the member hierarchy under a.b
a.b~~~c - a child or member called c someplace under the child/member hierarchy under a.b
a.b*~~~ 
etc...

from mdsplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.