-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_new_grammar_features.007
More file actions
42 lines (31 loc) · 848 Bytes
/
Copy pathtest_new_grammar_features.007
File metadata and controls
42 lines (31 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Test file for new grammar features
// 1. Test dynamic_lexer annotation
@dynamic_lexer("rust")
// 2. Test optimization hint
@optimize("regex", "fast_path")
// 3. Test semantic hint
@semantic("highlight", "keyword")
// 4. Test semantic codegen hint
@semantic("codegen", "optimized")
// 5. Test runtime semantic hint
@runtime_semantic("dynamic")
// 6. Test semantic inference hint
@semantic_inference("automatic")
// 7. Test formal proof hint
@formal_proof("lexing_equivalence", "proof1")
// 8. Test semantic consistency hint
@semantic_consistency("strict")
// 9. Test embedded DSL block
dsl python {
def hello():
print("Hello from Python DSL!")
}
// 10. Test existing features still work
@total data x = 42
agent TestAgent {
control {
on receive(msg) -> {
send_final(msg, "target")
}
}
}