Skip to content

Commit

Permalink
README.md and macro update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriptel committed Sep 7, 2024
1 parent c48c5c5 commit 69c687f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ trace('${a.a}: ${a.b() + " " + a.c}'); // RuleScript: Hello World

### Abstracts in script

RuleScriptAbstracts.txt in any classpath :
`RuleScriptAbstracts.txt` in any classpath :
```
test.HelloWorldAbstract
```
Expand All @@ -82,7 +82,7 @@ import test.HelloWorldAbstract;
trace(HelloWorldAbstract.rulescriptPrint()); // 'Hello World'
```
More templates in `test/src/Main.hx`.
More templates in [`test/src/Main.hx`](https://github.com/Kriptel/RuleScript/blob/master/test/src/Main.hx).

# Limitations

Expand Down
2 changes: 2 additions & 0 deletions rulescript/macro/Converter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ using StringTools;

class Converter
{
#if macro
// Language server shows errors...
public static function init()
{
Expand All @@ -28,6 +29,7 @@ class Converter
for (name in abstractsList)
Compiler.addMetadata('@:build(rulescript.macro.AbstractMacro.buildAbstract("$name","rulescript.__abstracts"))', name);
}
#end

static function parseFile(content:String):Array<String>
{
Expand Down

0 comments on commit 69c687f

Please sign in to comment.