--- a/src/Pure/Syntax/syntax.ML Fri Aug 15 15:51:02 2008 +0200
+++ b/src/Pure/Syntax/syntax.ML Fri Aug 15 15:51:04 2008 +0200
@@ -481,11 +481,11 @@
fun read_asts ctxt is_logtype (Syntax (tabs, _)) xids root (syms, pos) =
let
val {lexicon, gram, parse_ast_trtab, ...} = tabs;
+ val toks = Lexicon.tokenize lexicon xids syms;
+ val _ = List.app Lexicon.report_token toks;
+
val root' = if root <> "prop" andalso is_logtype root then SynExt.logic else root;
- val toks = Lexicon.tokenize lexicon xids syms;
- val _ = toks |> List.app (fn Lexicon.Token (Lexicon.Literal, _, (pos, _)) =>
- Position.report Markup.literal pos | _ => ());
- val pts = Parser.parse gram root' toks;
+ val pts = Parser.parse gram root' (filter Lexicon.is_proper toks);
val len = length pts;
val limit = ! ambiguity_limit;