Grammalecte  Check-in [e293f98eb8]

Overview
Comment:[build] don’t check if there is code in action when action is disambiguation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: e293f98eb84d32c763c0d006c2f5ea194521c11d8124193dcba178f9c8d55d6f
User & Date: olr on 2018-07-10 18:42:14
Other Links: branch diff | manifest | tags
Context
2018-07-11
05:39
[fr] faux positif check-in: a14f734037 user: olr tags: fr, rg
2018-07-10
18:42
[build] don’t check if there is code in action when action is disambiguation check-in: e293f98eb8 user: olr tags: build, rg
18:30
[fr] conversion: regex rules -> graph rules check-in: a34af7635d user: olr tags: fr, rg
Changes

Modified compile_rules_graph.py from [fa2c85d15b] to [3490c8ecf9].

   220    220       if cAction == ">":
   221    221           ## no action, break loop if condition is False
   222    222           return [sOption, sCondition, cAction, ""]
   223    223   
   224    224       if not sAction:
   225    225           print("# Error in action at line " + sActionId + ":  This action is empty.")
   226    226   
   227         -    if sAction[0:1] != "=":
          227  +    if sAction[0:1] != "=" and cAction != "=":
   228    228           checkIfThereIsCode(sAction, sActionId)
   229    229   
   230    230       if cAction == "-":
   231    231           ## error detected --> suggestion
   232    232           if sAction[0:1] == "=":
   233    233               sAction = prepareFunction(sAction, True)
   234    234               dFUNCTIONS["_g_s_"+sActionId] = sAction[1:]