Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • src
  • Issues
  • #495

Closed
Open
Created Apr 01, 2020 by kraus@krausDeveloper

Disable unquoted string literals

With the next major release we should disable unquoted string literals. Currently we cannot distinguish between a variable name and a string literal. Something like

CONST STRING fmap = "fieldmpas/someFM.T7";
cav1: RFCavity, L=0.2927, VOLT=60, FMAPFN=fmap, ...;

currently doesn't work because fmap in the second line is considered to be an uppercase string instead of the name of a variable.

In order to (try to) not break any input files we should add string constants for all those string attributes that only accept a set of predefined strings. Examples for such attributes are the attribute FSTYPE of the FIELDSOLVER command which accepts FFT, FFTPERIODIC, SAAMG and NONE or the attribute EMISSIONMODEL of the DISTRIBUTION command which accepts NONE, ASTRA and NONEQUIL.

Edited Jun 02, 2021 by kraus
Assignee
Assign to
OPAL 2021.1
Milestone
OPAL 2021.1 (Past due)
Assign milestone
Time tracking