1. 10 Oct, 2008 7 commits
    • Robert Griesemer's avatar
      - removed extra package clause · e7c8e788
      Robert Griesemer authored
      R=rsc
      DELTA=2  (0 added, 2 deleted, 0 changed)
      OCL=16927
      CL=16927
      e7c8e788
    • Robert Griesemer's avatar
      - Fixed bug in spec: PrimaryExpr is too restrictive in most places · 57b34617
      Robert Griesemer authored
      (for instance *p was not allowed on the left side of "="). Changed
      to Expression everywhere (this is too liberal, UnaryExpr is probably
      good enough, but it seems funny, and we need to check semantically
      anyway). This matches 6g yacc.
      - Write expression syntac recursively to express evaluation order
      and precedence syntactically.
      - Organized open issues list, folded in stuff from todo.txt which
      is now obsolete.
      
      R=r
      DELTA=108  (41 added, 52 deleted, 15 changed)
      OCL=16903
      CL=16910
      57b34617
    • Rob Pike's avatar
      cat unmatched ) · 41c462c0
      Rob Pike authored
      delete unused This() in preparation for removing linking via array indexes
      
      R=rsc
      DELTA=26  (2 added, 23 deleted, 1 changed)
      OCL=16895
      CL=16909
      41c462c0
    • Robert Griesemer's avatar
      - added missing case for opt. semicolons (labels) · 7271e048
      Robert Griesemer authored
      - more precise wording by having an explicit list of cases
      - simplified statement list
      
      R=r
      DELTA=16  (10 added, 0 deleted, 6 changed)
      OCL=16871
      CL=16875
      7271e048
    • Rob Pike's avatar
      beginnings of regular expression library. · 8f5b277c
      Rob Pike authored
      will move elsewhere when more complete.
      parses, does not execute.
      no character classes yet.
      
      R=rsc
      DELTA=522  (522 added, 0 deleted, 0 changed)
      OCL=16863
      CL=16874
      8f5b277c
    • Robert Griesemer's avatar
      - more cleanups (simpler code for optional semi's, bug fixes) · 583dac04
      Robert Griesemer authored
      R=r
      OCL=16869
      CL=16869
      583dac04
    • Robert Griesemer's avatar
      More spec progress: · bbfe3123
      Robert Griesemer authored
      - language for selectors and array/map indices
      - formal description of syntax notation used
      - factor out common productions to better show
        symmetries in grammar
      
      R=r
      DELTA=113  (77 added, 13 deleted, 23 changed)
      OCL=16853
      CL=16865
      bbfe3123
  2. 09 Oct, 2008 2 commits
    • Cary Hull's avatar
      Adding Mkdir. · f960840a
      Cary Hull authored
      R=rsc
      APPROVED=rsc
      DELTA=21  (21 added, 0 deleted, 0 changed)
      OCL=16794
      CL=16803
      f960840a
    • Robert Griesemer's avatar
      - make optional semicolons explicit in grammar in all places · aed247fd
      Robert Griesemer authored
      except in statement list, where it is expressed in words
      - allow for empty import, const, type, and var decl lists inside ()'s
      - fixed grammar for inc/dec statements
      - added empty statement as it appears to be accepted by 6g
      
      R=r
      DELTA=75  (23 added, 21 deleted, 31 changed)
      OCL=16785
      CL=16785
      aed247fd
  3. 08 Oct, 2008 11 commits
  4. 07 Oct, 2008 7 commits
  5. 06 Oct, 2008 4 commits
  6. 05 Oct, 2008 3 commits
  7. 04 Oct, 2008 4 commits
  8. 03 Oct, 2008 2 commits
    • Russ Cox's avatar
      silence gcc warnings · 45f4e385
      Russ Cox authored
      R=ken
      OCL=16449
      CL=16466
      45f4e385
    • Russ Cox's avatar
      new import/export format · b8babed7
      Russ Cox authored
          package flag
      	export type flag.Flag struct { name flag.string; usage flag.string; \
      		value flag.Value; next *flag.Flag }
      	type flag.string string
      	type flag.Value interface { AsBool () (? *flag.BoolValue); \
      		AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \
      		IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \
      		Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) }
      	type flag.BoolValue struct { val flag.bool; p *flag.bool }
      	type flag.IntValue struct { val flag.int64; p *flag.int64 }
      	type flag.StringValue struct { val flag.string; p *flag.string }
      	type flag.bool bool
      	func (e *flag.StringValue) AsBool () (? *flag.BoolValue)
      	func (e *flag.StringValue) AsInt () (? *flag.IntValue)
      	...
      
      the \ continuations are for this message, not real.
      
      changed delimiter for import from (( )) to $$ $$.
      
      replaced mksys.bash with mksys.c
      
      changed sys.go to use leading export,
      	fake package name is now SYS not foop
      
      don't always require ; on forward func decls
      
      R=ken,r
      DELTA=1827  (446 added, 1083 deleted, 298 changed)
      OCL=16433
      CL=16463
      b8babed7