Skip to content
Permalink
Browse files

Add Stratego language, also known as Stratego/XT, strategoxt.org (#296)

  • Loading branch information...
Apanatshka authored and Aaronepower committed Mar 14, 2019
1 parent 158c916 commit e4f218cbb253354006933d912c049b94b4764ecf
Showing with 37 additions and 0 deletions.
  1. +13 −0 languages.json
  2. +24 −0 tests/data/stratego.str
@@ -1452,6 +1452,19 @@
"srt"
]
},
"Stratego":{
"name":"Stratego/XT",
"base":"c",
"quotes":[
["\\\"", "\\\""],
["$[", "]"],
["$<", ">" ],
[ "${", "}" ]
],
"extensions":[
"str"
]
},
"Svg":{
"name":"SVG",
"base":"html",
@@ -0,0 +1,24 @@
// 24 lines 12 code 6 comments 6 blanks
module stratego

strategies

/** // */
main =
!"/* "
; id // */

foo =
?'a'

rules

foobar: "//" -> "\\" // " '
/* " ' */

foo: a -> a // /*
where
b := 'b' // */
// ; c := $[quotes with anti quotes [b], which are not supported by tokei atm so this is a commented line of code]
// ; c := ${quotes with anti quotes {b}, which are not supported by tokei atm so this is a commented line of code}
// ; c := $<quotes with anti quotes <b>, which are not supported by tokei atm so this is a commented line of code>

0 comments on commit e4f218c

Please sign in to comment.
You can’t perform that action at this time.