|
List Info
Thread: Dot(s), Identifier or Operator?
|
|
| Dot(s), Identifier or Operator? |

|
2006-04-28 14:35:05 |
|
may think that the single "." may be used as an Operator in some
settings, but I can't recall where that may be.
If I do this ...
Compiler tokensForString("a . b") foreach(t, writeln(t type, " ", t
name, " ", t character))
... I get this:
Identifier a 1
Identifier . 3
Identifier b 5
And if I do this ...
Compiler tokensForString("a.b") foreach(t, writeln(t type, " ", t
name, " ", t character))
... I get this:
Identifier a.b 3
Are Identifier names allowed to contain dots? Any docs on this?
More:
Compiler tokensForString("a .. b") foreach(t, writeln(t type, " ", t
name, " ", t character))
Identifier a 1
Identifier .. 4 <<<
Identifier b 6
... but:
message(a .. b) ==> a ..(b)
message(a . b) ==> a .(b)
I feel that some unit tests to test Io parsing could be very useful.
When I get some spare time, I might ...
/Jon
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|