mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 23:18:44 +00:00
new compiler options in CMakeLists, fixes
This commit is contained in:
parent
9b3d2812ba
commit
17328b842c
11 changed files with 62 additions and 60 deletions
|
|
@ -31,8 +31,8 @@ void ExecuteVisitor::Visit(Namespace* node) { // never used ??
|
|||
|
||||
// Definitions -----------------
|
||||
|
||||
void ExecuteVisitor::Visit(ImportStatement* node) {} // no value
|
||||
void ExecuteVisitor::Visit(AliasDefinitionStatement* node) {} // no value
|
||||
void ExecuteVisitor::Visit(ImportStatement*) {} // no value
|
||||
void ExecuteVisitor::Visit(AliasDefinitionStatement*) {} // no value
|
||||
|
||||
void ExecuteVisitor::Visit(VariableDefinitionStatement* node) { // visited on function call
|
||||
Visitor::Visit(node->value);
|
||||
|
|
@ -42,17 +42,17 @@ void ExecuteVisitor::Visit(VariableDefinitionStatement* node) { // visited on fu
|
|||
is_const_definition_ = std::nullopt;
|
||||
}
|
||||
|
||||
void ExecuteVisitor::Visit(FunctionDeclaration* node) {} // no value
|
||||
void ExecuteVisitor::Visit(FunctionDeclaration*) {} // no value
|
||||
|
||||
void ExecuteVisitor::Visit(FunctionDefinitionStatement* node) { // visited on function call
|
||||
// Visit(node->definition.get());
|
||||
Visitor::Visit(node->value);
|
||||
}
|
||||
|
||||
void ExecuteVisitor::Visit(TypeDefinitionStatement* node) {} // no value
|
||||
void ExecuteVisitor::Visit(AbstractTypeDefinitionStatement* node) {} // no value
|
||||
void ExecuteVisitor::Visit(TypeDefinitionStatement*) {} // no value
|
||||
void ExecuteVisitor::Visit(AbstractTypeDefinitionStatement*) {} // no value
|
||||
|
||||
void ExecuteVisitor::Visit(TypeclassDefinitionStatement* node) {} // no value
|
||||
void ExecuteVisitor::Visit(TypeclassDefinitionStatement*) {} // no value
|
||||
|
||||
void ExecuteVisitor::Visit(PartitionStatement* node) {
|
||||
Visitor::Visit(node->value);
|
||||
|
|
@ -60,7 +60,7 @@ void ExecuteVisitor::Visit(PartitionStatement* node) {
|
|||
|
||||
// Flow control -----------------
|
||||
|
||||
void ExecuteVisitor::Visit(TypeConstructorPatternParameter* node) {} // handled in TypeConstructorPattern
|
||||
void ExecuteVisitor::Visit(TypeConstructorPatternParameter*) {} // handled in TypeConstructorPattern
|
||||
|
||||
// TODO: check
|
||||
void ExecuteVisitor::Visit(TypeConstructorPattern* node) {
|
||||
|
|
@ -100,7 +100,7 @@ void ExecuteVisitor::Visit(TypeConstructorPattern* node) {
|
|||
}
|
||||
}
|
||||
|
||||
void ExecuteVisitor::Visit(MatchCase* node) {} // handeled in Match
|
||||
void ExecuteVisitor::Visit(MatchCase*) {} // handeled in Match
|
||||
|
||||
void ExecuteVisitor::Visit(Match* node) {
|
||||
context_manager_.EnterContext();
|
||||
|
|
@ -497,7 +497,7 @@ void ExecuteVisitor::Visit(ReturnExpression* node) {
|
|||
}
|
||||
|
||||
|
||||
void ExecuteVisitor::Visit(TypeConstructorParameter* node) {} // handled in TypeConstructor
|
||||
void ExecuteVisitor::Visit(TypeConstructorParameter*) {} // handled in TypeConstructor
|
||||
|
||||
// TODO: check
|
||||
void ExecuteVisitor::Visit(TypeConstructor* node) {
|
||||
|
|
@ -534,7 +534,7 @@ void ExecuteVisitor::Visit(TypeConstructor* node) {
|
|||
}
|
||||
|
||||
// TODO
|
||||
void ExecuteVisitor::Visit(LambdaFunction* node) {
|
||||
void ExecuteVisitor::Visit(LambdaFunction*) {
|
||||
error_handling::HandleInternalError("Lambda function are not implemented yet",
|
||||
"ExecuteVisitor.LambdaFunction");
|
||||
}
|
||||
|
|
@ -686,19 +686,19 @@ void ExecuteVisitor::Visit(AnnotatedName* node) { // TODO: check
|
|||
|
||||
// Type
|
||||
|
||||
void ExecuteVisitor::Visit(FunctionType* node) {} // no value
|
||||
void ExecuteVisitor::Visit(TupleType* node) {} // no value
|
||||
void ExecuteVisitor::Visit(VariantType* node) {} // no value
|
||||
void ExecuteVisitor::Visit(TypeExpression* node) {} // no value
|
||||
void ExecuteVisitor::Visit(ExtendedScopedAnyType* node) {} // no value
|
||||
void ExecuteVisitor::Visit(FunctionType*) {} // no value
|
||||
void ExecuteVisitor::Visit(TupleType*) {} // no value
|
||||
void ExecuteVisitor::Visit(VariantType*) {} // no value
|
||||
void ExecuteVisitor::Visit(TypeExpression*) {} // no value
|
||||
void ExecuteVisitor::Visit(ExtendedScopedAnyType*) {} // no value
|
||||
|
||||
// Typeclass
|
||||
|
||||
void ExecuteVisitor::Visit(ParametrizedTypeclass* node) {} // no value
|
||||
void ExecuteVisitor::Visit(ParametrizedTypeclass*) {} // no value
|
||||
|
||||
// Typeclass & Type -----------------
|
||||
|
||||
void ExecuteVisitor::Visit(ParametrizedType* node) {} // no value
|
||||
void ExecuteVisitor::Visit(ParametrizedType*) {} // no value
|
||||
|
||||
// Identifiers, constants, etc. -----------------
|
||||
|
||||
|
|
@ -730,7 +730,7 @@ void ExecuteVisitor::Visit(CharLiteral* node) {
|
|||
utils::ValueType::Tmp);
|
||||
}
|
||||
|
||||
void ExecuteVisitor::Visit(UnitLiteral* node) {
|
||||
void ExecuteVisitor::Visit(UnitLiteral*) {
|
||||
current_value_ = context_manager_.AddValue(
|
||||
info::value::InternalValue(info::value::Unit()),
|
||||
utils::ValueType::Tmp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue