doc-gen tryout using awk
This commit is contained in:
parent
76c9a6eadb
commit
0608483492
2 changed files with 26 additions and 10 deletions
12
doc/url.md
Normal file
12
doc/url.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# URI Value types
|
||||||
|
|
||||||
|
| type | info | format | example |
|
||||||
|
|------|------|-------------------------------------------|
|
||||||
|
|vector| x,y,z| comma-separated | #pos=1,2,3 |
|
||||||
|
|string| color| FFFFFF (hex) | #fog=5m,FFAACC |
|
||||||
|
|string| | | #q=-sun |
|
||||||
|
|int | | [-]x[xxxxx] | #price:>=100 |
|
||||||
|
|float | | [-]x[.xxxx] (ieee)| #prio=-20
|
||||||
|
|array | mixed| \|-separated | #pos=0,0,0|90,0,0 |
|
||||||
|
|
||||||
|
> in general type-limitations will piggyback JSON limitations (IEEE floatsize e.g.)
|
||||||
|
|
@ -3,16 +3,20 @@ package xrfragment;
|
||||||
@:expose // <- makes the class reachable from plain JavaScript
|
@:expose // <- makes the class reachable from plain JavaScript
|
||||||
@:keep // <- avoids accidental removal by dead code elimination
|
@:keep // <- avoids accidental removal by dead code elimination
|
||||||
|
|
||||||
class Value {
|
// # URI Value types
|
||||||
public var x:Float;
|
//
|
||||||
public var y:Float;
|
// | type | info | format | example |
|
||||||
public var z:Float;
|
class Value { // |------|------|-------------------------------------------|
|
||||||
public var color:String;
|
public var x:Float; // |vector| x,y,z| comma-separated | #pos=1,2,3 |
|
||||||
public var string:String;
|
public var y:Float; //
|
||||||
public var int:Int;
|
public var z:Float; //
|
||||||
public var float:Float;
|
public var color:String; // |string| color| FFFFFF (hex) | #fog=5m,FFAACC |
|
||||||
public var args:Array<Value>;
|
public var string:String; // |string| | | #q=-sun |
|
||||||
public function new(){}
|
public var int:Int; // |int | | [-]x[xxxxx] | #price:>=100 |
|
||||||
|
public var float:Float; // |float | | [-]x[.xxxx] (ieee)| #prio=-20
|
||||||
|
public var args:Array<Value>; // |array | mixed| \|-separated | #pos=0,0,0|90,0,0 |
|
||||||
|
public function new(){} //
|
||||||
|
// > in general type-limitations will piggyback JSON limitations (IEEE floatsize e.g.)
|
||||||
}
|
}
|
||||||
|
|
||||||
class Url {
|
class Url {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue