Lines Matching full:new

43 			List<string> r = new List<string>();  in Main()
45 List<string> entryPoints = new List<string>(); in Main()
145 T0Comp tc = new T0Comp(); in Main()
149 using (TextReader tr = new StreamReader( in Main()
201 * each new token.
288 tokenBuilder = new StringBuilder(); in T0Comp()
289 words = new SortedDictionary<string, Word>( in T0Comp()
291 savedWordBuilders = new Stack<WordBuilder>(); in T0Comp()
292 allCCode = new SortedDictionary<string, string>( in T0Comp()
295 extraCode = new List<string>(); in T0Comp()
296 extraCodeDefer = new List<string>(); in T0Comp()
313 throw new Exception( in T0Comp()
317 throw new Exception( in T0Comp()
326 * A new word is defined, that throws an exception when in T0Comp()
328 * new word. in T0Comp()
333 throw new Exception( in T0Comp()
337 throw new Exception( in T0Comp()
341 throw new Exception( in T0Comp()
374 AddNative("make-CX", false, new SType(3, 1), cpu => { in T0Comp()
377 throw new Exception(string.Format( in T0Comp()
382 TValue tv = new TValue(0, new TPointerExpr( in T0Comp()
399 throw new Exception( in T0Comp()
405 throw new Exception( in T0Comp()
410 throw new Exception("min/max in wrong order"); in T0Comp()
412 TValue tv = new TValue(0, new TPointerExpr( in T0Comp()
427 throw new Exception("No coroutine in compile mode"); in T0Comp()
436 * new word is finished building. in T0Comp()
441 throw new Exception( in T0Comp()
449 wordBuilder = new WordBuilder(this, tt); in T0Comp()
452 throw new Exception( in T0Comp()
458 throw new Exception( in T0Comp()
472 * a target when that new word is finished building. in T0Comp()
484 throw new Exception(string.Format( in T0Comp()
493 wordBuilder = new WordBuilder(this, tt); in T0Comp()
494 wordBuilder.StackEffect = new SType(din, dout); in T0Comp()
505 throw new Exception("Not compiling"); in T0Comp()
510 throw new Exception( in T0Comp()
529 throw new Exception("No word defined yet"); in T0Comp()
566 throw new Exception( in T0Comp()
573 throw new Exception(String.Format( in T0Comp()
584 wordBuilder.Literal(new TValue(0, in T0Comp()
585 new TPointerXT(w))); in T0Comp()
589 wordBuilder.Literal(new TValue(0, in T0Comp()
590 new TPointerXT(tt))); in T0Comp()
599 throw new Exception(); in T0Comp()
603 * Open a new data block. Its symbolic address is pushed in T0Comp()
606 AddNative("new-data-block", false, cpu => { in T0Comp()
607 dataBlock = new ConstData(this); in T0Comp()
608 cpu.Push(new TValue(0, new TPointerBlob(dataBlock))); in T0Comp()
612 * Define a new data word. The data address and name are in T0Comp()
620 throw new Exception( in T0Comp()
623 Word w = new WordData(this, name, tb.Blob, va.x); in T0Comp()
625 throw new Exception( in T0Comp()
639 throw new Exception( in T0Comp()
642 cpu.Push(new TValue(dataBlock.Length, in T0Comp()
643 new TPointerBlob(dataBlock))); in T0Comp()
651 throw new Exception( in T0Comp()
656 throw new Exception( in T0Comp()
669 throw new Exception( in T0Comp()
674 throw new Exception( in T0Comp()
683 AddNative("data-get8", false, new SType(1, 1), cpu => { in T0Comp()
687 throw new Exception( in T0Comp()
749 throw new Exception("No next word (EOF)"); in T0Comp()
761 throw new Exception("No next character (EOF)"); in T0Comp()
767 cpu.Push(new TValue(0, new TPointerXT(name))); in T0Comp()
795 AddNative("drop", false, new SType(1, 0), cpu => { in T0Comp()
798 AddNative("dup", false, new SType(1, 2), cpu => { in T0Comp()
801 AddNative("swap", false, new SType(2, 2), cpu => { in T0Comp()
804 AddNative("over", false, new SType(2, 3), cpu => { in T0Comp()
807 AddNative("rot", false, new SType(3, 3), cpu => { in T0Comp()
810 AddNative("-rot", false, new SType(3, 3), cpu => { in T0Comp()
822 AddNative("roll", false, new SType(1, 0), cpu => { in T0Comp()
825 AddNative("pick", false, new SType(1, 1), cpu => { in T0Comp()
829 AddNative("+", false, new SType(2, 1), cpu => { in T0Comp()
841 throw new Exception(string.Format( in T0Comp()
845 AddNative("-", false, new SType(2, 1), cpu => { in T0Comp()
857 cpu.Push(new TValue(a.x - b.x)); in T0Comp()
864 AddNative("neg", false, new SType(1, 1), cpu => { in T0Comp()
868 AddNative("*", false, new SType(2, 1), cpu => { in T0Comp()
873 AddNative("/", false, new SType(2, 1), cpu => { in T0Comp()
878 AddNative("u/", false, new SType(2, 1), cpu => { in T0Comp()
883 AddNative("%", false, new SType(2, 1), cpu => { in T0Comp()
888 AddNative("u%", false, new SType(2, 1), cpu => { in T0Comp()
893 AddNative("<", false, new SType(2, 1), cpu => { in T0Comp()
898 AddNative("<=", false, new SType(2, 1), cpu => { in T0Comp()
903 AddNative(">", false, new SType(2, 1), cpu => { in T0Comp()
908 AddNative(">=", false, new SType(2, 1), cpu => { in T0Comp()
913 AddNative("=", false, new SType(2, 1), cpu => { in T0Comp()
918 AddNative("<>", false, new SType(2, 1), cpu => { in T0Comp()
923 AddNative("u<", false, new SType(2, 1), cpu => { in T0Comp()
926 cpu.Push(new TValue(ax < bx)); in T0Comp()
928 AddNative("u<=", false, new SType(2, 1), cpu => { in T0Comp()
931 cpu.Push(new TValue(ax <= bx)); in T0Comp()
933 AddNative("u>", false, new SType(2, 1), cpu => { in T0Comp()
936 cpu.Push(new TValue(ax > bx)); in T0Comp()
938 AddNative("u>=", false, new SType(2, 1), cpu => { in T0Comp()
943 AddNative("and", false, new SType(2, 1), cpu => { in T0Comp()
948 AddNative("or", false, new SType(2, 1), cpu => { in T0Comp()
953 AddNative("xor", false, new SType(2, 1), cpu => { in T0Comp()
958 AddNative("not", false, new SType(1, 1), cpu => { in T0Comp()
962 AddNative("<<", false, new SType(2, 1), cpu => { in T0Comp()
965 throw new Exception("Invalid shift count"); in T0Comp()
970 AddNative(">>", false, new SType(2, 1), cpu => { in T0Comp()
973 throw new Exception("Invalid shift count"); in T0Comp()
978 AddNative("u>>", false, new SType(2, 1), cpu => { in T0Comp()
981 throw new Exception("Invalid shift count"); in T0Comp()
987 AddNative(".", false, new SType(1, 0), cpu => { in T0Comp()
996 AddNative("putc", false, new SType(1, 0), cpu => { in T0Comp()
999 AddNative("puts", false, new SType(1, 0), cpu => { in T0Comp()
1005 AddNative("eqstr", false, new SType(2, 1), cpu => { in T0Comp()
1022 throw new Exception( in AddNative()
1025 WordNative w = new WordNative(this, name, code); in AddNative()
1074 throw new Exception( in Unread()
1079 throw new Exception("Cannot delay two characters"); in Unread()
1121 throw new Exception( in ParseCCode()
1131 throw new Exception("Error while parsing C code"); in ParseCCode()
1162 StringBuilder sb = new StringBuilder(); in ParseCCodeNF()
1208 return new SType(din, dout); in ParseStackEffectNF()
1227 StringBuilder sb = new StringBuilder(); in ParseString()
1235 throw new Exception( in ParseString()
1241 throw new Exception(String.Format( in ParseString()
1301 throw new Exception("EOF in literal string"); in SkipNL()
1304 throw new Exception( in SkipNL()
1313 throw new Exception( in SkipNL()
1348 throw new Exception("Invalid literal char: `" + t); in DecodeCharConst()
1379 StringBuilder sb = new StringBuilder(); in ReadTerm()
1383 throw new Exception(String.Format( in ReadTerm()
1402 Word w = new WordNative(this, "toplevel", in ProcessInput()
1404 CPU cpu = new CPU(); in ProcessInput()
1405 Opcode[] code = new Opcode[] { in ProcessInput()
1406 new OpcodeCall(w), in ProcessInput()
1407 new OpcodeJumpUncond(-2) in ProcessInput()
1425 throw new Exception("EOF while compiling"); in CompileStep()
1434 throw new Exception(String.Format( in CompileStep()
1456 throw new Exception(String.Format( in CompileStep()
1479 new SortedDictionary<string, Word>( in Generate()
1481 Queue<Word> tx = new Queue<Word>(); in Generate()
1511 throw new Exception("'" + ep in Generate()
1515 throw new Exception("'" + ep in Generate()
1529 new SortedDictionary<long, ConstData>(); in Generate()
1564 IDictionary<string, int> slots = new Dictionary<string, int>(); in Generate()
1576 new Dictionary<string, int>(); in Generate()
1578 new Dictionary<int, string>(); in Generate()
1583 throw new Exception(String.Format( in Generate()
1622 throw new Exception( in Generate()
1631 List<CodeElement> gcodeList = new List<CodeElement>(); in Generate()
1633 new CodeElement[numInterpreted]; in Generate()
1664 int[] gcodeLen = new int[gcode.Length]; in Generate()
1778 bw = new BlobWriter(tw, 78, 1); in Generate()
1789 bw = new BlobWriter(tw, 78, 1); in Generate()
1948 new SortedDictionary<int, string>(); in Generate()
2010 throw new Exception(String.Format("No such word: '{0}'", name)); in Lookup()
2022 return new TValue(0, new TPointerBlob(this, s)); in StringToBlob()
2027 tv = new TValue(0); in TryParseLiteral()
2079 throw new Exception( in TryParseLiteral()
2090 throw new Exception("not an integer: " + ToString()); in ParseInteger()
2098 throw new Exception("Not in compilation mode"); in CheckCompiling()
2104 StringBuilder sb = new StringBuilder(); in EscapeCComment()