Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P ProofScriptParser
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sarah.grebing
  • ProofScriptParser
  • Merge requests
  • !14

Minus in Identifier

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open alexander.weigl requested to merge fix-underscore into master Feb 16, 2018
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 5

This patch add "-" as a regular char in identifier, e.g. a rule name can be update-heap.

For expressions, this clashes with arithmetic operator MINUS. TransformAST::splitIdentifier repairs this:

-a == (- a) 
-a-b  == (- a) - b

It also repairs a bug that - a - b is interpreted as - (a - b)

The error check for assignments is missing, e.g. "a-b := 1", and is left to reader.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-underscore

Imprint