Fix Ox implementation

Remove .h from Ox, fix `lex` typo, and add samples for Ox.
This commit is contained in:
Christian Bundy
2014-05-30 15:47:42 -07:00
parent 8cde6d2e8f
commit 72a6186f08
5 changed files with 457 additions and 6 deletions

View File

@@ -1479,10 +1479,9 @@ Org:
Ox:
type: programming
lex: oxl
lexer: Text only
extensions:
- .ox
- .h
- .oxh
- .oxo
@@ -1796,7 +1795,7 @@ Red:
extensions:
- .red
- .reds
Redcode:
extensions:
- .cw

View File

@@ -382,6 +382,11 @@
"Org": [
".org"
],
"Ox": [
".ox",
".oxh",
".oxo"
],
"Oxygene": [
".oxygene"
],
@@ -712,8 +717,8 @@
".gemrc"
]
},
"tokens_total": 609975,
"languages_total": 750,
"tokens_total": 610981,
"languages_total": 753,
"tokens": {
"ABAP": {
"*/**": 1,
@@ -47560,6 +47565,278 @@
"there": 1,
"it": 1
},
"Ox": {
"#include": 2,
"Kapital": 4,
"(": 119,
"L": 2,
"const": 4,
"N": 5,
"entrant": 8,
"exit": 2,
"KP": 14,
")": 119,
"{": 22,
"StateVariable": 1,
";": 91,
"this.entrant": 1,
"this.exit": 1,
"this.KP": 1,
"actual": 2,
"Kbar*vals/": 1,
"-": 31,
"upper": 3,
"log": 2,
".Inf": 2,
"}": 22,
"Transit": 1,
"FeasA": 2,
"decl": 3,
"ent": 5,
"CV": 7,
"stayout": 3,
"[": 25,
"]": 25,
"exit.pos": 1,
"tprob": 5,
"sigu": 2,
"SigU": 2,
"if": 5,
"v": 2,
"&&": 1,
"return": 10,
"<0>": 1,
"ones": 1,
"probn": 2,
"Kbe": 2,
"/sigu": 1,
"Kb0": 2,
"+": 14,
"Kb2": 2,
"*upper": 1,
"/": 1,
"vals": 1,
"tprob.*": 1,
"zeros": 4,
".*stayout": 1,
"FirmEntry": 6,
"Run": 1,
"Initialize": 3,
"GenerateSample": 2,
"BDP": 2,
"BayesianDP": 1,
"Rust": 1,
"Reachable": 2,
"sige": 2,
"new": 19,
"StDeviations": 1,
"<0.3,0.3>": 1,
"LaggedAction": 1,
"d": 2,
"array": 1,
"Kparams": 1,
"Positive": 4,
"Free": 1,
"Kb1": 1,
"Determined": 1,
"EndogenousStates": 1,
"K": 3,
"KN": 1,
"SetDelta": 1,
"Probability": 1,
"kcoef": 3,
"ecost": 3,
"Negative": 1,
"CreateSpaces": 1,
"Volume": 3,
"LOUD": 1,
"EM": 4,
"ValueIteration": 1,
"//": 17,
"Solve": 1,
"data": 4,
"DataSet": 1,
"Simulate": 1,
"DataN": 1,
"DataT": 1,
"FALSE": 1,
"Print": 1,
"ImaiJainChing": 1,
"delta": 1,
"*CV": 2,
"Utility": 1,
"u": 2,
"ent*CV": 1,
"*AV": 1,
"|": 1,
"ParallelObjective": 1,
"obj": 18,
"DONOTUSECLIENT": 2,
"isclass": 1,
"obj.p2p": 2,
"oxwarning": 1,
"obj.L": 1,
"P2P": 2,
"ObjClient": 4,
"ObjServer": 7,
"this.obj": 2,
"Execute": 4,
"basetag": 2,
"STOP_TAG": 1,
"iml": 1,
"obj.NvfuncTerms": 2,
"Nparams": 6,
"obj.nstruct": 2,
"Loop": 2,
"nxtmsgsz": 2,
"//free": 1,
"param": 1,
"length": 1,
"is": 1,
"no": 2,
"greater": 1,
"than": 1,
"QUIET": 2,
"println": 2,
"ID": 2,
"Server": 1,
"Recv": 1,
"ANY_TAG": 1,
"//receive": 1,
"the": 1,
"ending": 1,
"parameter": 1,
"vector": 1,
"Encode": 3,
"Buffer": 8,
"//encode": 1,
"it.": 1,
"Decode": 1,
"obj.nfree": 1,
"obj.cur.V": 1,
"vfunc": 2,
"CstrServer": 3,
"SepServer": 3,
"Lagrangian": 1,
"rows": 1,
"obj.cur": 1,
"Vec": 1,
"obj.Kvar.v": 1,
"imod": 1,
"Tag": 1,
"obj.K": 1,
"TRUE": 1,
"obj.Kvar": 1,
"PDF": 1,
"*": 5,
"nldge": 1,
"ParticleLogLikeli": 1,
"it": 5,
"ip": 1,
"mss": 3,
"mbas": 1,
"ms": 8,
"my": 4,
"mx": 7,
"vw": 7,
"vwi": 4,
"dws": 3,
"mhi": 3,
"mhdet": 2,
"loglikeli": 4,
"mData": 4,
"vxm": 1,
"vxs": 1,
"mxm": 1,
"<": 4,
"mxsu": 1,
"mxsl": 1,
"time": 2,
"timeall": 1,
"timeran": 1,
"timelik": 1,
"timefun": 1,
"timeint": 1,
"timeres": 1,
"GetData": 1,
"m_asY": 1,
"sqrt": 1,
"*M_PI": 1,
"m_cY": 1,
"determinant": 2,
"m_mMSbE.": 2,
"covariance": 2,
"invert": 2,
"of": 2,
"measurement": 1,
"shocks": 1,
"m_vSss": 1,
"m_cPar": 4,
"m_cS": 1,
"start": 1,
"particles": 2,
"m_vXss": 1,
"m_cX": 1,
"steady": 1,
"state": 3,
"and": 1,
"policy": 2,
"init": 1,
"likelihood": 1,
"//timeall": 1,
"timer": 3,
"for": 2,
"sizer": 1,
"rann": 1,
"m_cSS": 1,
"m_mSSbE": 1,
"noise": 1,
"fg": 1,
"&": 2,
"transition": 1,
"prior": 1,
"as": 1,
"proposal": 1,
"m_oApprox.FastInterpolate": 1,
"interpolate": 1,
"fy": 1,
"m_cMS": 1,
"evaluate": 1,
"importance": 1,
"weights": 2,
"observation": 1,
"error": 1,
"exp": 2,
"outer": 1,
"/mhdet": 2,
"sumr": 1,
"my*mhi": 1,
".*my": 1,
".": 3,
".NaN": 1,
"can": 1,
"happen": 1,
"extrem": 1,
"sumc": 1,
"or": 1,
"extremely": 1,
"wrong": 1,
"parameters": 1,
"dws/m_cPar": 1,
"loglikelihood": 1,
"contribution": 1,
"//timelik": 1,
"/100": 1,
"//time": 1,
"resample": 1,
"vw/dws": 1,
"selection": 1,
"step": 1,
"in": 1,
"c": 1,
"on": 1,
"normalized": 1
},
"Oxygene": {
"<Project>": 1,
"DefaultTargets=": 1,
@@ -65923,6 +66200,7 @@
"OpenCL": 144,
"OpenEdge ABL": 762,
"Org": 358,
"Ox": 1006,
"Oxygene": 157,
"Parrot Assembly": 6,
"Parrot Internal Representation": 5,
@@ -66105,6 +66383,7 @@
"OpenCL": 2,
"OpenEdge ABL": 5,
"Org": 1,
"Ox": 3,
"Oxygene": 1,
"Parrot Assembly": 1,
"Parrot Internal Representation": 1,
@@ -66175,5 +66454,5 @@
"YAML": 2,
"Zephir": 2
},
"md5": "ef1795e3585ee02f479767c6a071eb2f"
"md5": "a80808140f91c6a5539bdca53d5e114a"
}