Project

General

Profile

Actions

Bug #5926

closed

Support of char strings in syntax format and trace

Added by Mikhail Chupilko almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Andrei Tatarnikov
Category:
nML Translator
Target version:
-
Start date:
05/18/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
150522

Description

Char strings are not supported in NML specifications. It is impossible to write mnemonics of operators like LSL, RSL and so on instead of their correspondent values 0, 1, etc. ARM assembler requires exactly mnemonics..

Actions #1

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from New to Open
  • % Done changed from 0 to 30

Partial fix: r3646. Now constructs like this are supported:

syntax = format("xxx %s %s", "yyyy", "zzzz")

Then I will try to support conditions.

Actions #2

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Open to Resolved
  • % Done changed from 30 to 100

r3647 - supported the ternary "if" operator for strings in format statements. That is, now constructs like this are supported:

format("xxx %s %s", if HI == LO then "yyyy" else "DDDD" endif, "zzzz")

NOTE: Nesting of 'if' constructs and using arguments other than strings is not allowed for string-based conditional statements. Other use cases than this one are not supported yet.

Does this work for you? Is this enough to accomplish your task?

Or do you need "elif" statements and more complex conditions to be supported too?

Actions #3

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Resolved to Open

OK. Wait. I know how to improve this further to make more flexible. Tomorrow.

Actions #4

Updated by Andrei Tatarnikov almost 9 years ago

Improved r3648. See if this works for you. Nesting is supported.

Actions #5

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Open to Resolved
Actions #6

Updated by Mikhail Chupilko almost 9 years ago

  • Status changed from Resolved to New

Thanks. Nested "if" constructs are the most desirable. I checked the latest version of the tool: unfortunately, the nesting seems to be not supported yet.

Actions #7

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from New to Resolved

Supported elif constructs: r3650. Please check if it works fine now.

Actions #8

Updated by Mikhail Chupilko almost 9 years ago

Checked. It works well.

Actions #9

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 150522
Actions

Also available in: Atom PDF