Questions tagged [xbase]

(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.

83 questions
1
vote
2 answers

How can I write the following query in an executable way in SQL Server Express 2008

select doc_no,date,acc_no,amount, if xvar=1 (select acc_head from my_crem c where c.acc_no=o.acc_no) as acc_head else (select acc_head from my_debm c where c.acc_no=o.acc_no) as acc_head from my_ordm o; In the above query, xvar is not a column…
1
vote
2 answers

Xbase Interpreter: Could not access field on instance: null

I am testing the idea of making my dsl Jvm compatible and I wanted to test the possibility of extending Xbase and using the interpreter. I have tried to make a minimal test project to use with the interpreter but I am getting a runtime error. I…
Zannith
  • 429
  • 4
  • 21
1
vote
1 answer

Grammatically restricted JVMModelInferrer inheritence with Xtext and XBase

The following canonical XBase entities grammar (from "Implementing Domain-Specific Languages with Xtext and Xtend" Bettini) permits entities to extend any Java class. As the commented line indicates, I would like to grammatically force entities to…
fundagain
  • 398
  • 1
  • 6
  • 23
1
vote
1 answer

Exporting Xtext grammar and make a diagram

i was trying to make a readable file or image for people where show the grammar made in Xtext , i figure out how to export into XML but seem that XML file hasnt got my whole grammar inside . Is there any tool which generates a diagram with the XML…
Aikas
  • 67
  • 2
  • 7
1
vote
2 answers

How to generate code for a XExpression subtype?

I have a simple DSL that should generate async code for expressions (this is the simplest example I could come up with to illustrate my point). I just added to the scripting example an new async statement: grammar org.xtext.scripting.Scripting with…
Michael_Scharf
  • 33,154
  • 22
  • 74
  • 95
1
vote
0 answers

Xquery where clause in nested for loop

I have 2 xml documents that I need to reference in a nested FLWOR statement. MJH source.xml CONTACT
AGGREGATE_REPORT Dropped Related to agCenter
MJH
  • 21
  • 2
1
vote
1 answer

How to connect to foxpro db using XbaseJ

I want to fetch data from fox pro data base and insert it into Mysql. For that purpose i am using XbaseJ. But how can i connect to my FoxPro data base using XbaseJ. Thanks
Muhammad Zeeshan
  • 8,722
  • 10
  • 45
  • 55
1
vote
1 answer

Generate DSL file with XText from Java model

I have recently started working with XText. So far I have been able to define a simple grammar, complete the JvmModelInferrer and generate the corresponding java classes and .java files. Is it possible to generate automatically the DSL file (taking…
1
vote
1 answer

Clipper bin2i and i2bin needed in Java

I am converting/migrating a good old clipper xbase program to Java. As the old program is still running, I need to be compatible, when writing data in Java to the databases. It works really well, until now. For that I need the functions i2bin and…
PeterK
  • 11
  • 3
1
vote
0 answers

OOP - Visual Objects: Does VO support Interfaces like C#/Java Interface (for strategy design pattern)?

I'm a C#/Java developer and here on my new job we have a legacy system developed with Visual Objects (VO, from Computer Associates -- rough mode: VO = OO-Clipper), and I need to fix some modules and implement some patterns here (i.e.: strategy…
cezarlamann
  • 1,465
  • 2
  • 28
  • 43
1
vote
1 answer

Instantiate Xbase XExpressions programmatically

I'm working on an Xtext project that uses parts of the Xbase grammar. In my code I'm analysing the DSL program in order to generate some Java code. It's easy to turn an existing XExpression into Java code using XbaseCompiler but that's not what I…
Kirill Rakhman
  • 42,195
  • 18
  • 124
  • 148
1
vote
1 answer

Drupal / ubercart remote node addition

I am developing my first large Ubercart site, which needs to have a daily product database update from an existing xBase (DBF format). The conversion from DBF to MySQL/PHP is handled on the same server as the Drupal installation, using some custom…
user132192
  • 49
  • 1
  • 6
1
vote
1 answer

Error "Cyclic linking detected" while calling a referenced object in a ScopeProvider

I am currently implementing cross-referencing for my Xtext dsl. A dsl file can contain more then one XImportSection and in some special case an XImportSection does not necessariely contain all import statements. It means I need to customize the…
Joko
  • 600
  • 3
  • 15
1
vote
1 answer

Handling arbitrarily large integers in dbase language

Is there a simple package available that permits programming in xbase ( i.e. dbase or Foxpro syntax) and has a datatype to store and perform simple arithmetical operations on arbitrarily large integers ( say 100,000 decimal digits) ?
yatin
  • 11
  • 1
1
vote
1 answer

creating a simple domain-specific language using xtext-xbase-xtend toolchain

This is for a class project for creating a domain-specific language (DSL). Nothing fancy to consider. For myself, I've set this project as purely an exercise to learning the steps involved. Files involved (with attached code files):: 1)…
apil.tamang
  • 2,545
  • 7
  • 29
  • 40