From d067b8b70ad503f003a56193ec7d4bebfd3c0276 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 26 Sep 2018 18:46:01 +0300 Subject: remove type::name add endianess support type::name is too agressive as it clashes with keywords use reference::variable::type and reference::function::type instead --- src/compiler/types.lm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/compiler/types.lm') diff --git a/src/compiler/types.lm b/src/compiler/types.lm index 6edc2ea..c4982ac 100644 --- a/src/compiler/types.lm +++ b/src/compiler/types.lm @@ -1,6 +1,8 @@ # Basic (mostly) langauge independent types # These are the foundation for understanding the source code +token WS / space / + context number context unsigned literal `true `false @@ -49,10 +51,3 @@ context string [`' raw:raw* `'] { i:int = 0 for s:raw in r2 i = i + 1 lhs.length = i } | [`" raw:raw* `"] { i:int = 0 for s:raw in r2 i = i + 1 lhs.length = i } end - -context name - token NAME / [a-zA-Z_][a-zA-Z_0-9]* / - - def type - [NAME] -end -- cgit v1.2.3