• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. linereadstring() function problem

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 14878
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

linereadstring() function problem

tyanata
tyanata over 14 years ago

 Hello,

I have such problem in my SKILL code. In one of the routines of it I create list of strings. And after that read them one by one and transform to symbols with the linereadstring()  function.

 

I have such a proble for example:

llinereadstring("x") 

returns  ->(x)

 

llinereadstring("X") 

returns  ->(X)

 

llinereadstring("9") 

returns  ->(9)

 

llinereadstring("X9") 

returns  ->(X9)

 

llinereadstring("9X") 

returns  ->

SYNTAX ERROR found at line 1 column 2 of file *string*
*Error* lineread/read: syntax error encountered in input

 

My question is how can I overcome this problem if some of the strings in the list is starting with digit and ends with letter as "9X" in the example above.

 

Best regards,

 

tyanata

 

 

 

 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    tyanata,

    linereadstring() is really intended for parsing things that look like SKILL, and "9X" doesn't...

    So if it's a list of whitespace separated strings you want, you could use parseString() to convert to a list, and concat or stringToSymbol to convert them to symbols. For example:

    str="X9"
    mapcar('concat parseString(str))

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    tyanata,

    linereadstring() is really intended for parsing things that look like SKILL, and "9X" doesn't...

    So if it's a list of whitespace separated strings you want, you could use parseString() to convert to a list, and concat or stringToSymbol to convert them to symbols. For example:

    str="X9"
    mapcar('concat parseString(str))

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information