mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Translation system first draft
This commit is contained in:
parent
ffadc0dd69
commit
c4636343b4
15 changed files with 215 additions and 18 deletions
9
parser/expression/secondary/infix/translate.lua
Normal file
9
parser/expression/secondary/infix/translate.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
local infix_quote_both = require("parser.expression.secondary.infix.infix_quote_both")
|
||||
|
||||
local operator_priority = require("common").operator_priority
|
||||
|
||||
return infix_quote_both {
|
||||
operator = "->",
|
||||
identifier = "_->_",
|
||||
priority = operator_priority["_->_"]
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@ local secondaries = {
|
|||
-- binary infix operators
|
||||
-- 1
|
||||
r("infix.semicolon"),
|
||||
r("infix.translate"),
|
||||
-- 2
|
||||
r("infix.tuple"),
|
||||
r("infix.tag"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue