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 6235757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:43:33+00:00 2026-05-24T10:43:33+00:00

So far I only see stuff like ‘<‘ ,but never see ‘abc’ nor abc

  • 0

So far I only see stuff like '<' ,but never see 'abc' nor "abc" in a yacc file.

a:
  b '<' c;

Are the later two valid at all?

  • 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-24T10:43:34+00:00Added an answer on May 24, 2026 at 10:43 am

    ‘abc’ = is valid character since whenever you specify char like this compiler/preprocessor
    simply remove last character , sometimes you would get “character constants must be one or two character long” compile time error in ANSI C.If it is not given by your compiler then
    it has removed last ‘c’ from ‘abc’ should be assumed.

    so
    char ch='abc' ; // is actually equi. to ch = 'ab'

    but while binding it will only use ch='a' ,that’s why ‘abc’ is syntaxically correct but symantically wrong characher.(I wrote C coz. we use c89 tool i.e. POSIX C for compiling yacc and lex inputs)

    Again yylex() works on characters as basic functional unit and not string (anything inside double quotes). So “abc” is not valid character not even character to match with yylex()’s
    input.
    (yylex() accepts string of token
    exam. "10+20"
    having grammer [[:DIGIT:]]+ [-+*/%] [[:DIGIT:]]+
    and having tokens 1,0,+,2,0
    The tokens lex can identify by default w/o specifying grammer are
    10 as number
    + as char and
    20 as number again
    so it will match with grammer specified before )

    you can also specify string in rules section for matching with , like
    ^["I am"] means match with any input line starting with “I am”
    "I am" match with only input having string as "I am" only , It wont match with "I am Swapnil @ vikas.ghode@gmail.com"

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

Sidebar

Related Questions

I'm slowly learning Objective-C and Cocoa, and the only way I see so far
thus far i've only been using some basic jquery selectors and functions. but i'm
I've only done a bit of Flex development thus far, but I've preferred the
I have a log file full of queries, and I only want to see
so far i only know to use Ctrl-Shift-A to do SVN in TextMate. is
So far I've only built small graphical applications, using swing and JComponents as I
The only experience I have so far with a touchscreen interface was one where
So far, I've only been passing javascript strings to my web methods, which get
As far as I know, only the convenience methods return created objects with an
As far as I know document.getElementById('myId') will only look for HTML elements that are

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.