Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
minLevel2
outlinetrue
stylenone


Introduction

Domain Specific Languages are languages created to support a particular set of tasks, as they are performed in a specific domain. Atomiton's TQL is a collection of number of DSL's each supporting specific function. Just like any GPL, in order for DSL to be successful, it must to have advanced tooling support around it.  Ideally we want all all sort of simulators, debuggers, tools to analyze code coverage. Everything built on one platform. 

In this section we describe the simple reporting that A-Stack (runtime for TQL) offers to deduce your TQL Code coverage. The advantage of finding the TQL Code coverage is to avoid or minimize all runtime errors

...

Code Block
languagexml
themeEmacs
titleQuery to execute
<Query>#
Query:
 <DeleteAll> DeleteAll:
     <TempSensor> TempSensor:
       <sensorId sensorId(ne=: ""/>)
      </TempSensor>
    </DeleteAll>
  <Save Save(format="version, current">):
    <!-- This#This will read
-->    TempSensor:
<TempSensor>      Simulation: <Simulation>true
      PerifMsg: $Null()
true      Peripheral: </Simulation>serial
      <PerifMsg>Baudrate: 9600
       $Null()InterfacePort: "/dev/cu.usbmodem1411"
      Interface: </PerifMsg>serial
      <Peripheral>Format: ascii
      Operation: serialreceive
      </Peripheral>UniqueId: 76522
     <Baudrate> Payload: $Null()
      9600TempValue: $Null() 
Query(Storage: "TqlSubscription"):
  </Baudrate>Save:
    TqlSubscription(Label:  <InterfacePort>
"TempSensor", sid: "20"):
       /dev/cu.usbmodem1411
      </InterfacePort>
      <Interface>
        serial
      </Interface>
      <Format>
        ascii
      </Format>
      <Operation>
        receive
      </Operation>
      <UniqueId>
        76522
      </UniqueId>
      <Payload>
        $Null()
      </Payload>
      <TempValue>
        $Null()
      </TempValue>
    </TempSensor>
  </Save>
</Query>

<Query Storage='TqlSubscription'>
  <Save>
    <TqlSubscription Label='TempSensor' sid='20'>
      <Topic>*Atomiton.Topic: *Atomiton.Sensors.TempSensor.TempValue*</Topic>
    </TqlSubscription>
  </Save>
</Query>



The output will be in this format

...