Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7611271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:37:51+00:00 2026-05-31T01:37:51+00:00

So we have defined a set of API’s that end users (functional folks precisely)

  • 0

So we have defined a set of API’s that end users (functional folks precisely) would be using to perform their data transformations. Ex, for input as Name = "XyZ", the functional folks can define a transformation rule like @Text.UpperCase(Name) to convert every value they get for name to uppercase. The way it works is that every word defined after @ is the data type and every word defined after a . is a method followed by parenthesis and a value. While this is what we have planned, I am trying to figure out if:

1> We really need a grammar that would be used to parse such inputs?
2> How can I arrange the nested calls like @Text.UpperCase(@Text.trim("XyZ "))?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:37:52+00:00Added an answer on May 31, 2026 at 1:37 am

    You should define a grammer just to make sure you know what you will allow users to type.

    You might not need a parser generator, if your grammar is simple enough (e.g., the only thing your users can type are in effect function calls over named variables). In this case, ad hoc parsing may be enough. That would be good enough for your simple example.

    If your grammar has modest complexity (e.g., nested calls), you can code a recursive descent parser pretty easily that will do the job.

    If you grammar gets complicated (the users will surely ask for more features), you might want a parser generator.

    If it were me, with the requirements you stated, I’d build the recursive descent version, after writing a grammer that I got a parser generator to accept. That would also be useful documentation in the, ahem, user manual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app using a tab bar host api that I found and
I have to set a function pointer in a library API, such that it
I have a REST API that I am trying to access using Rails 3.0.1
I have defined a tag with a CSS attribute overflow set to scroll. This
If I have a type defined as a set of an enumerated type, it's
I have a set S of points (2D : defined by x and y)
I have a C++ STL set with a custom ordering defined. The idea was
Lets say I have model inheritance set up in the way defined below. class
I have defined a personalizable property on a web part and I would like
I have a set of Books objects, classs Book is defined as following :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.