typst-0.9: test/typ/compiler/import-01.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/import-01.typ"
( line 2 , column 2 )
(Import
(Literal (String "module.typ"))
(SomeIdentifiers [ ( Identifier "item" , Nothing ) ]))
, SoftBreak
, Code
"typ/compiler/import-01.typ"
( line 3 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "item"))
[ NormalArg (Literal (Int 1)) , NormalArg (Literal (Int 2)) ])
, NormalArg (Literal (Int 3))
])
, ParBreak
, Comment
, SoftBreak
, Text "{"
, SoftBreak
, Text "import"
, Space
, Quote '"'
, Text "module"
, Text "."
, Text "typ"
, Quote '"'
, Text ":"
, Space
, Text "b"
, SoftBreak
, Text "test"
, Text "("
, Text "b,"
, Space
, Text "1)"
, SoftBreak
, Text "}"
, ParBreak
, Comment
, SoftBreak
, Code
"typ/compiler/import-01.typ"
( line 12 , column 2 )
(Import (Literal (String "module.typ")) AllIdentifiers)
, ParBreak
, Comment
, SoftBreak
, Code
"typ/compiler/import-01.typ"
( line 15 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (Ident (Identifier "d"))
, NormalArg (Literal (Int 3))
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [✅]),
parbreak(),
text(body: [
{
import “module.typ”: b
test(b, 1)
}]),
parbreak(),
text(body: [
]),
parbreak(),
text(body: [
]),
text(body: [✅]),
parbreak() })