Skip to content

Commit

Permalink
added SPDX to specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian committed May 3, 2024
1 parent 8c207c6 commit ba22c71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions specification/shiplanding_formula.tbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 German Aerospace Center (DLR)
// SPDX-License-Identifier: Apache-2.0

Deg45_HeightAboveShip = 20.0;
Deg45_DistanceToShip = 30.0;
Deg45_AngleToShip = 135.0;
Expand Down
3 changes: 3 additions & 0 deletions specification/shiplanding_formula_combined.tbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 German Aerospace Center (DLR)
// SPDX-License-Identifier: Apache-2.0

Deg45_HeightAboveShip = 20.0;
Deg45_DistanceToShip = 30.0;
Deg45_AngleToShip = 135.0;
Expand Down
5 changes: 3 additions & 2 deletions src/tbt.pest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 German Aerospace Center (DLR)
// SPDX-License-Identifier: Apache-2.0

Specification = { Constants ~ TBT }
Specification = { COMMENT ~ Constants ~ TBT }

// Constants
Constants = { Constant* }
Expand Down Expand Up @@ -67,4 +67,5 @@ Under = _{ "_" }
Float = { ("-")? ~ Number ~ ("." ~ Number)? }
Word = { Letter~(Letter | Digit | Under)* }
Number = { '0'..'9'+ }
WHITESPACE = _{ " " | "\t" | "\r" | "\n"}
WHITESPACE = _{ " " | "\t" | "\r" | "\n"}
COMMENT = _{ ("/*" ~ (!"*/" ~ ANY)* ~ "*/") | ("//" ~(!("\n")~ANY)*~ "\n"? ) }

0 comments on commit ba22c71

Please sign in to comment.