Lines Matching full:new
29 * A WordBuilder instance organizes construction of a new interpreted word.
53 * Create a new instance, with the specified word name.
59 cfStack = new int[16]; in WordBuilder()
61 code = new List<Opcode>(); in WordBuilder()
62 toResolve = new List<string>(); in WordBuilder()
63 locals = new Dictionary<string, int>(); in WordBuilder()
75 throw new Exception("control-flow stack is not empty"); in Build()
80 Word w = new WordInterpreted(TC, name, locals.Count, in Build()
123 int[] ncf = new int[len << 1]; in CSPush()
161 throw new Exception("not an origin"); in CSPopOrig()
174 throw new Exception("not a destination"); in CSPopDest()
184 Add(new OpcodeConst(v)); in Literal()
215 Add(new OpcodePutLocal(lnum)); in Call()
217 Add(new OpcodeGetLocal(lnum)); in Call()
220 Add(new OpcodeCall(), target); in Call()
229 Add(new OpcodeCall(wtarget), null); in CallExt()
238 Add(new OpcodeCall(), target); in CallExt()
249 Add(new OpcodeGetLocal(lnum)); in GetLocal()
251 throw new Exception("no such local: " + name); in GetLocal()
263 Add(new OpcodePutLocal(lnum)); in PutLocal()
265 throw new Exception("no such local: " + name); in PutLocal()
270 * Define a new local name.
275 throw new Exception(String.Format( in DefLocal()
288 Add(new OpcodeCall(), xt.Name); in Call()
290 Add(new OpcodeCall(xt.Target)); in Call()
299 Add(new OpcodeRet()); in Ret()
303 * Add a forward unconditional jump. The new opcode address is
309 Add(new OpcodeJumpUncond()); in Ahead()
314 * if the top-of-stack value is 'true'. The new opcode address is
320 Add(new OpcodeJumpIf()); in AheadIf()
325 * if the top-of-stack value is 'false'. The new opcode address is
331 Add(new OpcodeJumpIfNot()); in AheadIfNot()
361 Add(new OpcodeJumpUncond(x - code.Count - 1)); in Again()
372 Add(new OpcodeJumpIf(x - code.Count - 1)); in AgainIf()
383 Add(new OpcodeJumpIfNot(x - code.Count - 1)); in AgainIfNot()