Parsing model.sh
|
Line 31 of '/home/andy/git/wild/esoteric/balls/lib/model.sh'
local "$__field"="$(balls::model.field "$__field" <<<"$__data\n")"
^~~~~~~~
Variable names must be constant strings, got (CompoundWord
parts: [
(DoubleQuotedPart
parts: [(SimpleVarSub token:(token id:VSub_Name val:'$__field' span_id:270))]
spids: [269 271]
)
(LiteralPart token:(token id:Lit_Other val:'=' span_id:272))
(DoubleQuotedPart
parts: [
(CommandSubPart
command_list:
(CommandList
children: [
(SimpleCommand
words: [
(CompoundWord
parts: [
(LiteralPart
token: (token id:Lit_Chars val:balls span_id:275)
)
(LiteralPart
token: (token id:Lit_Other val:':' span_id:276)
)
(LiteralPart
token: (token id:Lit_Other val:':' span_id:277)
)
(LiteralPart
token: (token id:Lit_Chars val:model.field span_id:278)
)
]
)
(CompoundWord
parts: [
(DoubleQuotedPart
parts: [(SimpleVarSub token:(token id:VSub_Name val:'$__field' span_id:281))]
spids: [280 282]
)
]
)
]
redirects: [
(Redir
op_id: Redir_TLess
fd: 16777215
arg_word:
(CompoundWord
parts: [
(DoubleQuotedPart
parts: [
(SimpleVarSub
token: (token id:VSub_Name val:'$__data' span_id:286)
)
(LiteralPart
token: (token id:Lit_Other val:'\\' span_id:287)
)
(LiteralPart
token: (token id:Lit_Chars val:n span_id:288)
)
]
spids: [285 289]
)
]
)
spids: [284]
)
]
)
]
)
left_token: (token id:Left_CommandSub val:'$(' span_id:274)
spids: [274 290]
)
]
spids: [273 291]
)
]
)
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
|