relis icon indicating copy to clipboard operation
relis copied to clipboard

Support for apostrophe `'` in the DSL

Open gauranshkumar opened this issue 9 months ago • 0 comments

Describe the bug Currently, all the List and Dynamic list keys do not support apostrophe ' for languages like French.

To Reproduce Steps to reproduce the behaviour:

  1. Use the following as an example.
PROJECT test123 "Test 123"

SCREENING
no_override
Reviews 1
Conflict on Decision resolved_by Unanimity
Criteria =   ["Out of scope" ]
Validation 100%  Normal
Phases  "Include papers" "Include papers" Fields(Title,Abstract,Link)

CLASSIFICATION
no_override
Simple model_approach "Does the paper report modeling approache for building CPS?"  [1] :bool 
    Simple model_comment "Describe modelling approach"  [1] :text(500)
    Simple model_mm "Does paper report a model/meta-model?" [1] :bool
    Simple model_mm_comment "Describe a model/meta-model"  [1]  :text(500)
    Simple reprot_tool "Does paper report a tool?" [1] :bool
    Simple model_tool_comment "Name reported tools (distinguish tools used by the approach, name of the tool supporting the approach or the ones on top of which approach was built)"  [1]  :text(700)
    Simple report_process "Does paper report a process?" [1] :bool 
    Simple model_mm_comment "Describe a reported process (e.g. if it was modelled, is it presenting overall approach, or cerian parts)"  [1] :text(500)


Simple part_report_model "Which part of CPS paper report to model?"  [1]   :text(500) 

DynamicList formalizam "Which formalizam is 'used for modelling of CPS?"  [1] "Formalizam" =["Acausal Modeling of Physical Systems with Bond Graphs (theory)","Equation-Based Acausal Modeling With Modellica","Causal Block Diagrams","Discrete Event Modeling","Discrete Event Modeling","Statecharts","Modelling and Verifying Complex Non-Deterministics Systems","Architecture Analysis and Design Language (AADL)","MPM process FTGPM","Other"]


Simple integration "How it is possible to integrated this formalizms?"  [1]   :text(500) 

DynamicList applicatio_domain "Which application domain is addressed?"  [1] "Application domain" =["Smart Manufacturing","Emergency Response","Air Transportation","Critical Infrastructure","Health Care and Medicine","Intelligent Transportation","Robotic for Service","Building automotation","Other"]

DynamicList participants "Does paper report who is a person/s involved in modelling the CPS?"  [1] "Participants " =["CPS engineer","CPS user","Domain expert","Evaluation expert","Other"]
Simple on_modellers "Does paper report on modellers background knowladge?" [1] :bool
Simple year "Year"  [1] :int(4)

REPORT
Simple year "Papers per year" on year charts( pie)
Simple application_domain "Application domain" on applicatio_domain charts(bar)
Compare year_domain "Application domain per year" on applicatio_domain with year charts(bar)

In the above example I have explicitly added an ' here DynamicList formalizam "Which formalizam is 'used for modelling of CPS?"

  1. Generate the PHP file (it usually runs)
  2. create a project from the generated configuration file, and you will get a syntax parse error due to uncareful handling of the apostrophe by the DSL.

Expected behaviour The case should be handled separately, and the use of an escape sequence may fix the problem.

Screenshots image

gauranshkumar avatar May 21 '24 15:05 gauranshkumar