Skip to content

Commit

Permalink
[C2HEXA] Reserved keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Jul 3, 2024
1 parent 8d9a461 commit a4670a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/toHexa/clang/clangGenerator.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ class ClangGenerator {
// TODO
]

static let reserved = [
'class',
'not',
'and',
'or',
'null',
'new',
'interface',
'type',
'var',
'let',
'fun'
]

fun desugarKnownType(qualType String) String {
let qualType = desugarQualType.get(qualType) ?? qualType
let qualType = qualTypeToHexaType.get(qualType) ?? qualType
Expand Down Expand Up @@ -308,6 +322,7 @@ class ClangGenerator {
}
return Node.InlineStatements(results)
case FieldDecl:
// TODO
case BinaryOperator:
// TODO better idea
var op = Lexer.tokenize(Buffer.from(node.opcode), "TEST").token[0] as! Token
Expand Down

0 comments on commit a4670a2

Please sign in to comment.