diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-06 15:13:55 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-06 15:15:14 -0800 |
| commit | c8ccbe5f42b5a197010b5ee95491dce5b9bbcbf4 (patch) | |
| tree | db2259bad177e558067a7cc2ea09836749242009 /core/text.nom | |
| parent | 0f17c5eb9ac4660f2f969bd1e67af42713e45eac (diff) | |
Removed utils.lua, simplified some metaprogramming stuff, added native support
for calling functions with (%a %b %c) instead of (call %a with [%b,
%c]), renamed _List -> List, _Dict -> Dict, improved example code.
Diffstat (limited to 'core/text.nom')
| -rw-r--r-- | core/text.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/text.nom b/core/text.nom index 05ec409..40eb895 100644 --- a/core/text.nom +++ b/core/text.nom @@ -22,10 +22,10 @@ test: assume ("asdf"::uppercase) == "ASDF" assume ("asdf"::with "s" -> "X") == "aXdf" assume ("one\ntwo\n"::lines) == ["one", "two", ""] - (アクション %spec %body) parses as (externally %spec means %body) + (%spec とは %body) parses as (%spec means %body) test: %こんにちは = "こんにちは" - アクション [% と言う] "\(%)世界" + (% と言う) とは "\(%)世界" assume (%こんにちは と言う) == "こんにちは世界" (%expr for %match in %text matching %patt) compiles to (..) Lua value "\ |
