Skip to content

Execution of "$=1" raises Syntax Error #894

@rdbyk

Description

@rdbyk
--> $=1
$=1
 ^^
Error: syntax error, unexpected =, expecting end of file

According to help names, $ is a valid variable ... however it is treated as token/expression at parsing level (cf. help dollar) ... this is a contradiction.

Some remarks:

  • after parsing $ is nothing else than a polynomial
  • so using $ is just a naming convention for a polynomal used in certain contexts
  • one could replace all $ e.g. by %s without any harm

Why not making $ just a predefined variable like %s? Doing so, would simplify parser and more ... ?

Please cf. also #280, which is related to the boolean "constants" %t and %f.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions