aboutsummaryrefslogtreecommitdiff
path: root/src/boot/scanner.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-06-20 14:08:58 +0000
committerdos-reis <gdr@axiomatics.org>2013-06-20 14:08:58 +0000
commit1102a65aec0ee0acf7f93ef3c1d780399ac479b7 (patch)
tree356433094e9a874e6c927ab4dbcf1852fb1d02cd /src/boot/scanner.boot
parentb0cf190c03229e5f09284c80b26c0b8a1feafba6 (diff)
downloadopen-axiom-1102a65aec0ee0acf7f93ef3c1d780399ac479b7.tar.gz
Allow inerts in Boot.
Diffstat (limited to 'src/boot/scanner.boot')
-rw-r--r--src/boot/scanner.boot7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/boot/scanner.boot b/src/boot/scanner.boot
index 8b9a5e5e..bf7ba428 100644
--- a/src/boot/scanner.boot
+++ b/src/boot/scanner.boot
@@ -1,6 +1,6 @@
-- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd.
-- All rights reserved.
--- Copyright (C) 2007-2012, Gabriel Dos Reis.
+-- Copyright (C) 2007-2013, Gabriel Dos Reis.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -212,6 +212,7 @@ shoeToken lex ==
ch = shoeTAB =>
lexerAdvancePosition! lex
[]
+ ch = char "&" => shoeInert lex
shoeError lex
b = nil => nil
dqUnit makeToken(linepos,b,n)
@@ -410,6 +411,10 @@ shoeWord(lex,esp) ==
shoeLeafKey w
shoeLeafId w
+shoeInert lex ==
+ lexerAdvancePosition! lex
+ ['INERT,second shoeW(lex,false)]
+
shoeInteger lex ==
shoeInteger1(lex,false)