24 lines
385 B
C
24 lines
385 B
C
//
|
|
// Created by servostar on 5/7/24.
|
|
//
|
|
|
|
#include <ast/ast.h>
|
|
|
|
int main(void) {
|
|
|
|
AST_init();
|
|
|
|
const AST_NODE_PTR node = AST_new_node(0, "value");
|
|
|
|
for (size_t i = 0; i < AST_ELEMENT_COUNT; i++) {
|
|
// set kind
|
|
node->kind = i;
|
|
// print symbol
|
|
printf("%ld %s\n", i, AST_node_to_string(node));
|
|
}
|
|
|
|
AST_delete_node(node);
|
|
|
|
return 0;
|
|
}
|