equal
deleted
inserted
replaced
10 import scala.util.parsing.input.{Reader, CharSequenceReader} |
10 import scala.util.parsing.input.{Reader, CharSequenceReader} |
11 |
11 |
12 |
12 |
13 class Outer_Syntax(symbols: Symbol.Interpretation) |
13 class Outer_Syntax(symbols: Symbol.Interpretation) |
14 { |
14 { |
15 protected val keywords: Map[String, String] = Map((";" -> Outer_Keyword.DIAG)) |
15 protected val keywords: Map[String, String] = Map((";" -> Keyword.DIAG)) |
16 protected val lexicon: Scan.Lexicon = Scan.Lexicon.empty |
16 protected val lexicon: Scan.Lexicon = Scan.Lexicon.empty |
17 lazy val completion: Completion = new Completion + symbols // FIXME !? |
17 lazy val completion: Completion = new Completion + symbols // FIXME !? |
18 |
18 |
19 def + (name: String, kind: String): Outer_Syntax = |
19 def + (name: String, kind: String): Outer_Syntax = |
20 { |
20 { |
26 override val keywords = new_keywords |
26 override val keywords = new_keywords |
27 override lazy val completion = new_completion |
27 override lazy val completion = new_completion |
28 } |
28 } |
29 } |
29 } |
30 |
30 |
31 def + (name: String): Outer_Syntax = this + (name, Outer_Keyword.MINOR) |
31 def + (name: String): Outer_Syntax = this + (name, Keyword.MINOR) |
32 |
32 |
33 def is_command(name: String): Boolean = |
33 def is_command(name: String): Boolean = |
34 keywords.get(name) match { |
34 keywords.get(name) match { |
35 case Some(kind) => kind != Outer_Keyword.MINOR |
35 case Some(kind) => kind != Keyword.MINOR |
36 case None => false |
36 case None => false |
37 } |
37 } |
38 |
38 |
39 |
39 |
40 /* tokenize */ |
40 /* tokenize */ |