support translations of the games

This commit is contained in:
Jon Eugster
2024-03-27 00:22:51 +01:00
parent a26022e3fc
commit ad1add5264
12 changed files with 61 additions and 18 deletions
+3
View File
@@ -331,6 +331,9 @@ structure GameParams where
diagnostics : GameDiagnostics
deriving ToJson, FromJson
-- `snap` and `initParams` are unused
set_option linter.unusedVariables false in
/-- WIP: publish diagnostics, all intermediate goals and if the game is completed. -/
def publishProofState (m : DocumentMeta) (snap : Snapshot) (initParams : Lsp.InitializeParams) (hOut : FS.Stream) :
IO Unit := do
@@ -14,9 +14,6 @@ open Lean.Parser Term
open PrettyPrinter Delaborator SubExpr
open TSyntax.Compat
#check Command.declSig
open private shouldGroupWithNext evalSyntaxConstant from Lean.PrettyPrinter.Delaborator.Builtins
-- def typeSpec := leading_parser " :\\n: " >> termParser
+2 -2
View File
@@ -59,8 +59,8 @@ def saveGameData (allItemsByType : HashMap InventoryType (HashSet Name))
IO.FS.writeFile (path / inventoryFileName) (toString (toJson inventory))
-- write PO file for translation
I18n.createPOTemplate
-- write file for translation
I18n.createTemplate
open GameData
-2
View File
@@ -52,8 +52,6 @@ If names are provided, it will introduce as many `let` statements as there are n
syntax (name := letIntros) "let_intros" : tactic
-- (ppSpace colGt (ident <|> hole))*
#check letIntros
@[tactic letIntros] def evalLetIntros : Tactic := fun stx => do
match stx with
| `(tactic| let_intros) => liftMetaTactic fun mvarId => do