Stenway Developer Network

Examples

Configuration files (e.g. Game.cfg):

Configuration
  Video
    Resolution 1280 720
    RefreshRate 60
    Fullscreen true
  End
  Audio
    Volume 100
    Music 80
  End
  Player
    Name "Hero 123"
  End
End

Make / project files:

Make
  Type Executable
  OutputName Test
  OutputDir d:\MyProjects\Test
  SourceFiles
    File MyClass.cs
    File Folder\MyClassB.cs
    File Program.cs
  End
End

Manifest / meta data files:

manifest
  package com.example.myapp
  application
    allowBackup true
    icon @mipmap/ic_launcher
    label "My App"
    theme true
  end
  ... ...
  uses-features
    feature hardware.sensor.compass
    feature hardware.bluetooth
    feature hardware.camera
  end
end

UI layout files:

LinearLayout
  LayoutWidth MatchParent
  LayoutHeight MatchParent
  Orientation Vertical
  Children
    TextView
      ID @+id/text
      Text "Hello World"
    End
    Button
      ... ...
    End
  End
End

2D file formats:

canvas
  size 300 200
  background-color light-gray
  rect
    size 120 80
    position 10 10
    brush solid 0 255 0
  end
  lines
    points 30 45  60 40  30 20
    color red
  end
end

3D file formats:

3DOBJ
  VPOS 0.5 0 0  0 1 0  -0.5 0 0
  VNORMAL 0 0 1  0 0 1  0 0 1
  VTEX0 0 0  0.5 1  1 0
  TRIS 0 1 2
  MATERIAL
    DIF 10 0 255
    MAP /Users/user/Desktop/Media/Texture.png
  END
END

GPS data files:

GPSData
  MetaData
    Author James
    Description "My favorite routes"
  End
  Route
    Name "Route 1"
    Waypoints
      Waypoint -43.3081 171.7652 "Waypoint A"
      Waypoint -43.2773 171.7552 "Waypoint B"
      Waypoint -43.2588 171.7705 "Waypoint C"
    End
  End
  ... ...
End

Styling:

styles
  style
    id RedText
    font-family "Times New Roman" Times serif
    font-size 40 px
    border-style dotted dashed solid double
    border-radius 5 px
    color rgba 255 10 10 50
  end
  ... ...
end

Playlists:

Playlist
  Title "My favorite music"
  Image QSBiZWF1dGlmdWwgaW1hZ2U=
  Tracks
    Track Song1 /storage/sdcard0/Music/Song1.ogg
    Track Song2 /storage/sdcard0/Music/Rock.ogg
    Track Song3 https://www.example.com/Pop.ogg
  End
End

Video editing:

Movie
  Title "Last winter"
  Files
    File Clip1 e:\MyRecordings\Clip1.mp4
    File Clip2 e:\MyRecordings\Clip2.mp4
    File Song e:\Music\AmbientMusic.ogg
  End  
  Tracks
    VideoTrack
      Clip 0.0 Clip1
      Clip 117.13 Clip2
    End
    ... ...
  End
End

Music:

Sequence
  Title "My song"
  BPM 60
  TicksPerBeat 2
  A4 440
  Notation SPN
  TimeSignature 3 4
  Notes
    Note C4 0 2
    Note E4 2 1
    Note E4 3 1
    Note G4 4 2
    ... ...
  End
End

Graphs:

graph
  node node-1
  node node-2
  node node-3
  node node-4
  edge node-1 node-2
  edge node-2 node-3
  edge node-3 node-4
  edge node-2 node-4
end

Bibliographic references:

BibliographicItems
  Book
    ID Miller+Davis04
    Title "Beautiful Canada"
    Authors
      Author "James E." Miller
      Author Victoria Davis
    End
    Publisher "Miller Publishing" 
    Year 2004
  End
  Article
    ... ...
  End
End

Text:

Article
  Title "Scientific Article"
  Date 2021-01-02
  Document
    Section
      Title Introduction
      Paragraph "The \bf{first} <i>paragraph</i>."
      Figure F1 Image.jpg "Figure caption"
      Paragraph "See also \cite{Miller+Davis04}"
    End
    ... ...
  End
End

Recipes:

recipe
  title "Bosten Baked Beans"
  ingredients
    ingredient 2 cups "navy beans" 
    ingredient ½ pound bacon
    ... ...
  end
  steps
    step "Soak beans overnight in water"
    ... ...
  end
end

Financial reporting:

FinancialStatements
  Unit USD ISO4217:USD
  BalanceSheet
    Entity "My Company"
    Date 2020-12-31
    Assets
      NonCurrent
        PropertyPlantEquipment 12050000.00 USD
        InvestmentProperty 3820000.00 USD
      End
      ... ...
    End
    ...
  End
End

Online shops:

ShoppingCart
  Item
    Name "AX10 Desktop Processor 5.1 GHz"
    Quantity 3
    Price 349.99 USD
    Gift True
    GiftMessage 감사합니다
  End
  Item
    ... ...
  End
End

Contacts / electronic business cards:

Contact
  Name Jacques Bernard Mr.
  Address
    Type Home
    HouseNumber 18    
    Street "Avenue de la Bourdonnais"
    PostalCode 75007
    City Paris
    Country France
  End
  Email
     Work jacques@bernard-peintures.fr 
  End
  Photo Embedded UGhvdG9PZkphY3F1ZXM=
End

Calendar data exchange:

CalendarEntry
  Type Event
  Status Tentative
  Name "Proposal review"
  DateTime
    StartTime 2021-01-02 14:00
    EndTime 2021-01-02 15:00
  End
  Organizer "Steve Wilson" steve@mycompany.com
  Description "Agenda:"/"1. Examine"/"2. Discuss"
End

Project management formats:

Project
  Name "My project"
  Resources
    Resource WS William Smith Designer
    Resource OJ Olivia Jones Developer
  End
  Tasks
    Task
      ID Task_DesignLogo
      Name "Design logo"
      Duration 2 d
      AssignedTo WS
      Dependencies FinishToStart Task_Brainstorm
    End
    ... ...
  End
End

Localized message example (french):

Message
  De André
  À Jacques
  Horodatage 2021-01-02 15:43
  Texte "Je serai là à 5 heures"
Fin

File list:

Files
  IMAGE IMG_0004.jpg
  image "c:\My Files\Image - 001.png"
  Image c:\Misc\GreenBackground.png
  Video d:\Untitled.mp4
  imaGe c:\Photos\DSC_0366.jpg
  video 20210104_163259.mp4
End