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

  • Home
  • SEARCH
  • 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 122629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:09:32+00:00 2026-05-11T04:09:32+00:00

MKS Yacc supports a notation which their web site calls selection preference syntax .

  • 0

MKS Yacc supports a notation which their web site calls ‘selection preference syntax‘. It isn’t illustrated, but it consists of a token in square brackets, optionally with a caret, and it indicates that a particular token is required to follow, or is required not to follow, the rest of the rules:

non_terminal:  TOKEN1 non_terminal2 TOKEN2 [TOKEN3]  non_terminal:  TOKEN1 non_terminal2 TOKEN2 [^TOKEN3] 

(I’m not clear whether the bracketed item can be a non-terminal. The code I’ve seen using the notation always uses a token or a couple of space separated tokens, and never a non-terminal.)

Is anyone aware of an alternative Yacc-compatible system (preferably open source) that provides the same support (notation can differ – functionality can’t), running on Unix or Linux machines, preferably available in source format?

(MKS Yacc also provides some flexibility in handling errors and adjusting the error behaviour. One way in which that can be used is to treat keywords as identifiers when they are encountered in a position that makes no sense when they are treated as keywords. I was able to retrofit that into byacc – Berkeley Yacc – but I haven’t spent enough time working out how to handle ‘selection preferences’.)


See also: Has anyone used the ‘selection preference’ mechanism provided by MKS Yacc?

  • 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. 2026-05-11T04:09:33+00:00Added an answer on May 11, 2026 at 4:09 am

    Just for completeness, since I linked this in the answer to your other version, there appears to be a product from Thinkage called YAY, which is yacc-like and supports the selector syntax. They’re in Kitchner and apparently closely associated with MKS, but from the website they also appear to be responsible for MKS’s documentation, so maybe if all else fails you can call them as ask what the hell they meant by these selection preferences. 😉

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

Sidebar

Ask A Question

Stats

  • Questions 218k
  • Answers 218k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer From the documentation for httplib (Python 2) (called http.client in… May 12, 2026 at 11:35 pm
  • Editorial Team
    Editorial Team added an answer You need to set this.DialogResult rather than btnxxx.DialogResult in the… May 12, 2026 at 11:35 pm
  • Editorial Team
    Editorial Team added an answer The snd_pcm_writei() function might return less than sizeof(buffer) when there's… May 12, 2026 at 11:35 pm

Related Questions

Since I've gotten no answer at all to my question Is there an alternative
Please let me know the differences between the Subversion and MKS
I was searching for options for a plugin for MKS version control within Visual
I am moving an application from Unix (AIX) to Windows. We have MKS Toolkit

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.