1. 29 Jul, 2009 8 commits
  2. 28 Jul, 2009 18 commits
    • Austin Clements's avatar
      Implement comparison operators. · 27b0c351
      Austin Clements authored
      R=rsc
      APPROVED=rsc
      DELTA=304  (281 added, 0 deleted, 23 changed)
      OCL=32361
      CL=32382
      27b0c351
    • Robert Griesemer's avatar
      Intersperse comments nicely when printing an AST. · 2210a643
      Robert Griesemer authored
      gofmt formatted source code looks pretty good already;
      with a bit more fine-tuning it should be great.
      
      printer.go:
      - Implemented comment intersperse algorithm.
        The approach is a result of many trial-and-error
        experiments but at this point reasonably simple
        and open to arbitrary fine-tuning.
      
      parser.go:
      - Simplified handling of lead and line comments
        (formerly called leading and trailing comments).
      - Use a comments list instead of an array (I may
        change this back - this is not obviously better
        and uses more space).
      
      doc.go:
      - Remove comments from AST nodes that have been
        'consumed' in the documentation to avoid duplicate
        printing of them. Allows for better control of
        what is printed w/o use of printing control flags
        (which are hard to use and not fine-grained enough).
      
      Corresponding adjustments to various clients of these
      files.
      
      R=rsc
      DELTA=478  (275 added, 108 deleted, 95 changed)
      OCL=32185
      CL=32380
      2210a643
    • Austin Clements's avatar
      Fix segfault on unnamed function arguments. Make continue · f6258511
      Austin Clements authored
      jump to the post statement instead of the condition check.
      
      R=rsc
      APPROVED=rsc
      DELTA=10  (6 added, 1 deleted, 3 changed)
      OCL=32359
      CL=32379
      f6258511
    • Robert Griesemer's avatar
      Fixed typos in comments. · d27bae50
      Robert Griesemer authored
      TBR=rsc
      OCL=32330
      CL=32330
      d27bae50
    • Robert Griesemer's avatar
      Ring ADT. · 6d3d25de
      Robert Griesemer authored
      - Provides analogous functionality to a doubly-linked list
        implementation.
      - Completely symmetric set of operations.
      - Operations on the ADT do not lead to results that are
        outside the domain of the ADT (closed interface).
      - Alternative to container/list.
      
      R=rsc
      DELTA=489  (489 added, 0 deleted, 0 changed)
      OCL=32284
      CL=32323
      6d3d25de
    • Russ Cox's avatar
      floating-point limits and equations · e50d3ba7
      Russ Cox authored
      R=r
      DELTA=13  (8 added, 2 deleted, 3 changed)
      OCL=32291
      CL=32322
      e50d3ba7
    • Russ Cox's avatar
      fmt boundary bugs. · 92c36279
      Russ Cox authored
      pow10 was giving up too easily.
      
      R=r
      DELTA=4  (0 added, 3 deleted, 1 changed)
      OCL=32310
      CL=32321
      92c36279
    • Austin Clements's avatar
      Implement if, for (modulo ranges), break, continue, increment, · 709e75e3
      Austin Clements authored
      and decrement.  blockCompilers now form a tree the mimics the
      nesting of scopes and provide convenient ways to enter and
      exit scopes.  blockCompilers also track the break and continue
      PC for the current block.  The statement testing interface now
      works in lists of statements, which simplifies a bunch of
      things.
      
      R=rsc
      APPROVED=rsc
      DELTA=401  (335 added, 44 deleted, 22 changed)
      OCL=32308
      CL=32317
      709e75e3
    • Rob Pike's avatar
      - clean up code creating keys for type maps · 483e4fc4
      Rob Pike authored
      - derive int, uint, float, uintptr decoders based on their size
      - add overflow checks in decode
      
      R=rsc
      DELTA=407  (281 added, 44 deleted, 82 changed)
      OCL=32286
      CL=32290
      483e4fc4
    • Rob Pike's avatar
      constants for integer limits · 08b5b484
      Rob Pike authored
      R=rsc
      DELTA=16  (16 added, 0 deleted, 0 changed)
      OCL=32288
      CL=32288
      08b5b484
    • Rob Pike's avatar
      constants for floating point limits · 326de9ca
      Rob Pike authored
      R=rsc
      DELTA=5  (5 added, 0 deleted, 0 changed)
      OCL=32283
      CL=32287
      326de9ca
    • Phil Pennock's avatar
      Support use of $GOBINDIR to override $HOME/bin · d6f89c69
      Phil Pennock authored
      R=r,gri,rsc
      APPROVED=rsc
      DELTA=53  (12 added, 6 deleted, 35 changed)
      OCL=31822
      CL=32282
      d6f89c69
    • Austin Clements's avatar
      Fix bug where typeArrayMap was using the address of the · eaa25ac1
      Austin Clements authored
      pointer to the Type instead of the address of the Type.
      
      R=rsc
      APPROVED=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=32265
      CL=32279
      eaa25ac1
    • Russ Cox's avatar
      constant keys for array initializers · 18840f54
      Russ Cox authored
      R=ken
      OCL=32261
      CL=32261
      18840f54
    • Austin Clements's avatar
      Implement multi-valued functions, multi-valued return, and · 75760a4b
      Austin Clements authored
      unpacking for assignments, call arguments, and returns.  This
      change revamps the whole assignment compilation system to be
      multi-valued, using the new MultiType type and multiV value.
      Function calls, returns, and assignments now share a lot of
      code and produce very consistent error messages.
      
      R=rsc
      APPROVED=rsc
      DELTA=510  (335 added, 74 deleted, 101 changed)
      OCL=32248
      CL=32258
      75760a4b
    • Russ Cox's avatar
      move bug148, already fixed, to fixedbugs · eece85c9
      Russ Cox authored
      R=ken
      OCL=32257
      CL=32257
      eece85c9
    • Rob Pike's avatar
      document rpc. · 5b1d52e8
      Rob Pike authored
      R=rsc
      DELTA=160  (124 added, 0 deleted, 36 changed)
      OCL=32233
      CL=32256
      5b1d52e8
    • Russ Cox's avatar
      bug170; fix test for bug175 · b7dd312c
      Russ Cox authored
      R=ken
      OCL=32255
      CL=32255
      b7dd312c
  3. 27 Jul, 2009 14 commits