(A) Xbase is a structured format for storing data in files and indexes. It was used originally by foxPro and dBase. (B) Xbase is an expression language provided by Xtext.
Questions tagged [xbase]
83 questions
9
votes
3 answers
Python: Fast querying in a big dbf (xbase) file
I have a big DBF file (~700MB). I'd like to select only a few lines from it using a python script. I've seen that dbfpy is a nice module that allows to open this type of database, but for now I haven't found any querying capability. Iterating…

static_rtti
- 53,760
- 47
- 136
- 192
8
votes
1 answer
Access outer variable inside a block and Y-combinator
I hope you all to be fine. I'm implementing the fixed-point Y-combinator in Harbour and I'm having some troubles with it. Well, the Y-combinator can be defined by the lambda-calculus as:
Y = (λh.λF.F(λ x.((h(h))(F))(x))) (λh.λF.F(λ…

Marcelo Camargo
- 2,240
- 2
- 22
- 51
3
votes
0 answers
What is __GNU LesserC__, __GNU LesserG__?
I found following code in library I'm trying to compile
#ifdef __GNU LesserC__
__attribute__((packed))
#endif
and
#ifdef __GNU LesserG__
#pragma interface
#endif
What the hell is __GNU LesserC__? Why is there the space, #ifdef afaik doesn't…

graywolf
- 7,092
- 7
- 53
- 77
3
votes
4 answers
Visual FoxPro Compact Index File Format
I am trying to understand the file format of a Visual FoxPro compact index (*.IDX). I am currently referring to Microsoft's documentation for guidance.
The index is a B-tree of 512-byte nodes. Each leaf ("exterior") node contains multiple entries.…

Adam Paynter
- 46,244
- 33
- 149
- 164
3
votes
2 answers
Which header format can be assumed by reading an initial .DBF byte?
Regarding the first byte of a .DBF file and how to detect the version of xbase used (ie, the format of the rest of the file), the most comprehensive list I can compile is:
Byte 0
-----------
x xxx x 001 = 0x?1 not used
0 000 0 010 = 0x02 FoxBASE
0…
user358080
3
votes
1 answer
How to use XBaseInterpreter in Xtext?
can someone tell me, how i can use "xbaseinterpreter"? I have no idea :(
I have written a DSL used to define simple protocol-structure for a sensornet, the goal of the work is to check if a data-message(as Instance) belongs to any user-defined…

Wendsja
- 31
- 1
2
votes
1 answer
How to add custom import statements in the generated java file in xtext using jvmmodelInferrer?
I have written a grammar for my domain specific language in xtext and I am using jvmmodelInferrer to generate java code. I can generate fields and custom methods but how can I add custom import statements like 'import java.util.*' in the generated…

Kartik Raut
- 21
- 1
2
votes
1 answer
Xbase - How to add tags on top on inferrer generated methods
I have figured out how to create methods and add to the bodies of the method. What I need to also do is add annotations to the generated method such as @Test etc, how would I accomplish this?

J. Doe
- 33
- 3
2
votes
2 answers
how to update a record with the dbf module
How can I update a record in a dbf with the dbf module : https://pypi.python.org/pypi/dbf
Here is what I tried:
table2 = dbf.Table(filename, codepage="cp1252")
table[0].name = "changed"
But I get:
File "", line 1, in
File…

maazza
- 7,016
- 15
- 63
- 96
2
votes
2 answers
java expressions with binary operators in xbase not working
I'm using xbase
grammar xolang.Xolang with org.eclipse.xtext.xbase.Xbase
and an
XBlockExpression
where I expect to write my code
When write an expression like
val c = 1 + 1
Then I get the following error
The method +(int) is undefined
The same…

tgoossens
- 9,676
- 2
- 18
- 23
2
votes
0 answers
Xtext: Couldn't resolve reference to JvmType 'String'
For our master project at university we created multiple DSLs using Xtext. One of the DSLs is a model entity DSL which allows the user to create a class with properties and methods.
We reuse Xbase because, of course, we want the methods to have a…

dst
- 1,770
- 13
- 26
1
vote
2 answers
How do I interface an xBase based ERP to a web application?
I am required to setup a web application that will interact with an existing ERP system (WinMagi). The ERP is basically a front-end to an xBase (FoxPro) database. The database is located on an in-house server. The ERP, as far as I'm aware, doesn't…

max
- 179
- 2
- 10
1
vote
0 answers
KivyMD FitImage from xbase64 raw data
I have a response from a server that gives me an xbase64 image.
I need to turn this image into a FitImage.
My kivy file has an element like this:
FitImage:
id: fish_image
pos_hint: {'center_y': 0.85}
allow_stretch: True
…

artem abdyushev
- 29
- 1
1
vote
0 answers
php-xbase: .fpt file disappears when appending record to .dbf file
I have successfully managed to append a record to a .dbf file using hasumi's php-xbase extension in PHP. However, the .fpt file containing memo data disappears every time I append a record.
use XBase\Enum\FieldType;
use XBase\Enum\TableType;
use…

cp_bmwebdev
- 11
- 2
1
vote
1 answer
Solving a left recursion problem in xText
I am currently working on creating a DSL in xText and I am stumbling upon a problem which is probably related to an ambiguity or left recursion problem. I am not sure which of these two problems applies to my case (similar topics I found online also…

Jos B.
- 27
- 5