Questions tagged [metalanguage]

27 questions
1
vote
1 answer

Mako: def composition (at render time) not evaluating properly

In the process of understanding Mako (template engine for Python), I started playing with defs constructs. One thing I attempted to do was producing a general "if" statement (say, a JavaScript one) out of def calls. Here's the text: <%def…
atava
  • 57
  • 5
1
vote
2 answers

Drawing a user-defined tree

I am making a pretty abstract tree drawing system, but I am having quite a lot of trouble formalizing all the drawing features it should have. I'd very much appreciate if someone could point me to things to read about this topic, because…
Svalorzen
  • 5,353
  • 3
  • 30
  • 54
0
votes
1 answer

getting ''a type instead of 'a in sml

I've written a hash-table for an sml assignment. I've made a polymorphic builder for the hashtable but when I use the insert function I created, I get a comparable type (''a instead of 'a) although i'm not making any comparisons that include the…
0
votes
1 answer

Creating A Dictionary In SML

I am newly Learner Of The SML Language. I Have Learned The Basics Of SML Language.But, I am having a Trouble In getting the code of creating a dictionary in SML. So, I Want To Know The code.
0
votes
1 answer

Is there a metalanguage, similar to BNF that can concisely describe self-describing data?

Say for instance I had a data set that was self describing. The first few well-structured records define data type IDs, which include the name and length of records, followed by content records, which start with the data IDs and contain a variable…
Mike Godin
  • 3,727
  • 3
  • 27
  • 29
0
votes
0 answers

Understanding terminology used to describe the DOM

This might seem a bit of an odd question, but I'm grappling with the DOM right now and trying to make sense of its structure. Much of the language that is used to describe its constructs are a little confusing to me as I try to visualize the DOM…
efw
  • 449
  • 3
  • 16
0
votes
1 answer

OSX - Convert GLSL 'InOut' to Metal

I am trying to convert the GLSL function below: float pMod1(inout float p, float size) { float halfsize = size*0.5; float c = floor((p + halfsize)/size); p = mod(p + halfsize, size) - halfsize; return c; } to use in Metal static…
sooon
  • 4,718
  • 8
  • 63
  • 116
0
votes
0 answers

Standard Meta Language: are hd and tl evaluated right or left first?

In Standard Meta Language, if I have a function that includes multiple successive calls to the hd and tl functions, will they be executed right to left, or left to right? Example: - fun secondChar s = tl hd s; val secondChar = fn : string ->…
Queue
  • 446
  • 7
  • 23
0
votes
1 answer

Bitwise structure definition language generating c++ code

Before any question is asked: I am dealing with actual hardware. I am searching for a meta-language that would allow me to specify data structure contents where fields have different bit length (this includes fields like 1, 3 or 24 or 48 bits long),…
Tomasz W
  • 1,841
  • 1
  • 16
  • 25
0
votes
1 answer

Add a keyword to C# with code generation?

I have a domain specific language that I would like to interact with C# by adding new keywords (or some keyword-like syntax). Using attributes would be insufficient (I can't use them in method bodies), and shoehorning it into 'valid' C# notation…
Xrm
  • 1
0
votes
0 answers

In Computer Science(especially in metalanguages using EBNF) , do the symbols -> and <- have specific meaning?

My apologies if this is not in SO's domain - it's a bit high-level/theoretical. I'm studying a custom Language Specification(called ACELandic if you interested). And it is based of of Extended Backus–Naur Form(EBNF ). I see symbols like <-…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
-2
votes
1 answer

IDE for programming in metalanguage?

I've recently started learning metalanguage. Is there a jetbrains IDE for it? If not, which is the best IDE for metalanguage programming. Doesn't have to be open source. Thanks.
mindreader
  • 1,763
  • 1
  • 20
  • 35
1
2